Comments (6)
Also similar lines:
PHP Notice: Uninitialized string offset: 0 in /var/www/classes/favicon.php on line 232
from feed-on-feeds.
At a cursory glance, the favicon notices would seem to be from a site specifying an empty URL as an icon. The two errors may be somehow related, but this one is probably ignorable for now..
However, the error() error is certainly odd, and more interesting -- my first read of it as suggests that either fof_parse(), or SimplePie itself, is returning a something which is not a SimplePie class.. which would be very strange.. Don't really have a lot to go on, here. :)
Which commit are you running, what feed is generating that, and is there anything interesting in the fof.log from the start of an update of that feed until it fails?
from feed-on-feeds.
Oh, or maybe it was just failing to parse an empty feed url, and then tripping up on the error reporting because a false variable is still a set variable. Some quick fixes for both that case and to quiet the favicon notices are in my fork now, if you want to give them a try.
from feed-on-feeds.
@thylacine That's brilliant. Great catch, thats quelled the error() warning.
I forgot I had @silenced some lines in the favicon class.
[Tue Nov 19 13:17:49 2013] [error] [client 146.185.175.25] PHP Warning: file_get_contents(http://www.thechessworld.com/images/favicon.ico): failed to open stream: HTTP request failed! HTTP/1.1 404 Component not found\r\n in /var/www/classes/favicon.php on line 170
[Tue Nov 19 13:17:49 2013] [error] [client 146.185.175.25] PHP Notice: icon resource 'http://www.thechessworld.com/images/favicon.ico' returned 404 in /var/www/classes/favicon.php on line 177
[Tue Nov 19 13:17:50 2013] [error] [client 146.185.175.25] PHP Warning: file_get_contents(http://rss.openobjects.com/favicon.ico): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found\r\n in /var/www/classes/favicon.php on line 170
[Tue Nov 19 13:17:50 2013] [error] [client 146.185.175.25] PHP Notice: icon resource 'http://rss.openobjects.com/favicon.ico' returned 404 in /var/www/classes/favicon.php on line 177
[Tue Nov 19 13:18:04 2013] [error] [client 146.185.175.25] PHP Warning: DOMDocument::loadHTMLFile(http://www.seo-theory.com/): failed to open stream: Connection refused in /var/www/classes/favicon.php on line 80
[Tue Nov 19 13:18:04 2013] [error] [client 146.185.175.25] PHP Notice: Undefined variable: http_response_header in /var/www/classes/favicon.php on line 90
Would it be ok to just silence those lines or should a more purposeful ignore be written in the class so error logs are not filled (i mean filled - I have a user with 300 feeds alone)?
from feed-on-feeds.
I'm a little wary of totally ignoring these events -- some people (well, maybe only me :) ) might want to keep track of what's going on..
So, my solution would be to quell the remaining warnings, and re-route any notices (which are really just the anticipated warnings, rewritten) directly into the fof log, with a 'favicon' label, whence they can be ignored via the admin logging preferences.
I've just pushed a stab at this behavior to my fork, but it's not very tested yet..
from feed-on-feeds.
Closing because the issue has no updates for 5 years :)
from feed-on-feeds.
Related Issues (20)
- Looks like fvicon.com is down HOT 3
- Themeing HOT 6
- PDO driver error ? HOT 2
- Error FATAL: couldn't open logfile /var/fof-data//fof-install.log HOT 15
- Changelog / new features in README HOT 6
- Is this the best feed-of-feeds to use a s a base for more development? HOT 4
- fof_install.php throwing errors due to ' around field names when adding columns/keys HOT 1
- Needs PHP 5.3.6 or higher as it uses 'saveHTML' with a parameter in plugin/item_targets.php HOT 3
- X-WAV podcast enclosures don't play. HOT 2
- Help, I forgot the username and password HOT 1
- Configure plugins as default enabled/disabled
- 'j' paging-down gets stuck on longer entries now HOT 9
- File authorship information needs updating HOT 3
- FoF is double-decoding entities where it shouldn't be HOT 1
- Can you support docker? HOT 3
- YouTube replacement messes up playlist embeds HOT 3
- PHP 8.x HOT 1
- Some requests not using data compression (Accept-Encoding)
- Update automatically? HOT 6
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 feed-on-feeds.