Comments (9)
tags definitely aren't working
going to http://my.ho.st/tags returns a blank page. No error message at all, even in debug mode.
from selfoss.
Thats a really strange error. It seems the $this->view is not available. But in the constructor of the parent class (BaseController) it will be instantiated. What happens if you add
$this->view = new \helpers\View();
between the $html and foreach?
from selfoss.
In tags controller:
/**
* returns all tags
*
* @return void
*/
public function renderTags($tags) {
$html = "";
$this->view = new \helpers\View();
foreach($tags as $tag) {
$this->view->tag = $tag['tag'];
$this->view->color = $tag['color'];
$html .= $this->view->render('templates/tag.phtml');
}
return $html;
}
still no luck (same blank page, no error log)
i tested it on php5.4 and 5.3 btw
from selfoss.
When I try that, I get two sets of tags on the home page, one where they look like they should go, and another on the very upper-left side disrupting the layout. Using Chrome.
from selfoss.
For some reason, the framework was calling tags() twice, libs/f3/base.php:1147 and libs/f3/base.php:1164. Here's a hack to make it only return once.
/**
* returns all tags
*
* @return void
*/
public function renderTags($tags) {
$html = "";
if (!$this->view) {
$this->view = new \helpers\View();
return $html;
}
foreach($tags as $tag) {
$this->view->tag = $tag['tag'];
$this->view->color = $tag['color'];
$html .= $this->view->render('templates/tag.phtml');
}
return $html;
}
from selfoss.
I don't have an idea why this happens. When you watch your network communication, how often will be the tag refresh be executed?
Tag and Source refresh was changed yesterday. Can you retest this issue?
Do you have a special server configuration?
from selfoss.
No luck. This is with PHP 5.3.2, stock Ubuntu 10.04 install.
Looking deeper into the backtrace, it happens when it's initializing the Tags Controller, even though the backtrace says it's calling ->tags(). Certainly very strange.
$tagsController = new \controllers\Tags();
from selfoss.
Waaahh, I think I found the bug. Please test the newest version from master branch.
The name of the controller class Tags was the same as one function. The first letter of the function was lowercase but on some systems the function was interpreted as constructor. This constructor overwrites the constructor of the parent class which instantiates the view object. Crazy bug, I'm not sure why this happens on some systems and on others not.
Please reopen if problem still exists.
from selfoss.
That fixes it for me. Thanks!
from selfoss.
Related Issues (20)
- Negative keyword filtering HOT 3
- Filter does not seem to work HOT 6
- upstream timed out HOT 3
- Cliupdate times out on cleaning thumbnails
- how to set the proxy HOT 1
- PHP 8.2.5 support? HOT 2
- Cannot export OPML HOT 4
- Deduplicate items across sources HOT 3
- Incorrect publishing times HOT 12
- Personalize source icon HOT 1
- Twitter : You currently have access to a subset of Twitter API v2 endpoints [...] HOT 2
- Custom spout not displayed in drop down menu HOT 2
- Item's date as a future date HOT 4
- The auto_collapse option is ineffective HOT 3
- Mark as read behavior with unread filter HOT 1
- The More button sometimes appears by mistake HOT 1
- Rss feed HOT 1
- Higher loglevel for authentication errors HOT 2
- Add support for dark mode HOT 2
- Too big icons on mobile phones
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selfoss.