google-code-backups / rsslounge

Automatically exported from code.google.com/p/rsslounge
0 stars 0 forks source link

Photo-Feed does not show Photos. #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add http://interfacelift.com/wallpaper_beta/rss/ as a regular Feed
2. Feed will be added, Items have image included. Fine.
3. Edit Feed, set it as a "Photo Feed" instead of "Regular Feed".
4. No feed/fotos are shown on top of page.
5 Checking Settings/Errormessages says:
"File
'http://interfacelift.com/wallpaper_beta/previews/02136_magentamorning.jpg'
appears to be an invalid image source."
This applies to any image in the feed. Image can be accessed directly via
URL and is show, when feed is set to 'regualar RSS feed'.
And in my case applies to any flickr-Feed, too.

What version of the product are you using? On what operating system?
- rsslounge-1.2

Please provide any additional information below.
- Turning error_reporting to (E_ALL ^ E_NOTICE) does not bring further
information.

Original issue reported on code.google.com by k.kr...@gmail.com on 24 Jan 2010 at 11:18

GoogleCodeExporter commented 8 years ago
What happens if you add this feed directly as "photo feed"?
I can't reproduce the problem. Ensure, that no items will be fetched after 
changing
the feed from "Regular Feed" to "Photo Feed". You have to wait until the next 
update
run until the feed items will be fetched as photo.

Original comment by zzuzzlwuzzl@googlemail.com on 24 Jan 2010 at 12:18

GoogleCodeExporter commented 8 years ago

Original comment by zzuzzlwuzzl@googlemail.com on 24 Jan 2010 at 12:22

GoogleCodeExporter commented 8 years ago
- Set logger.level = DEBUG
- Added the feed directly as "photo feed".
- Forced an update with http://<rsslounge url>/update/silent 
- No Images.

A guess: Could it be that the problem is not fetching the image but writing a
thumbnail? (server-rights?) /data/thumbnails is empty.

errorlog:
2010-01-24T14:11:22+01:00 DEBUG (7): start feed fetching "Interfacelift"
2010-01-24T14:11:22+01:00 DEBUG (7): load feed plugin
2010-01-24T14:11:22+01:00 DEBUG (7): load feed content
2010-01-24T14:11:22+01:00 DEBUG (7): plugins_rss_feed: 5 items fetched
2010-01-24T14:11:22+01:00 DEBUG (7): current date 26.10.2009 14:11:22
2010-01-24T14:11:22+01:00 DEBUG (7): start item fetching
2010-01-24T14:11:22+01:00 DEBUG (7): start insert new item
2010-01-24T14:11:22+01:00 ERR (3): thumbnail error File
'http://interfacelift.com/wallpaper_beta/previews/02140_romanbath.jpg' appears 
to be
an invalid image source.
2010-01-24T14:11:22+01:00 DEBUG (7): start insert new item
2010-01-24T14:11:22+01:00 ERR (3): thumbnail error File
'http://interfacelift.com/wallpaper_beta/previews/02139_theycoming.jpg' appears 
to be
an invalid image source.
2010-01-24T14:11:22+01:00 DEBUG (7): start insert new item
2010-01-24T14:11:22+01:00 ERR (3): thumbnail error File
'http://interfacelift.com/wallpaper_beta/previews/02138_mrniceguy.jpg' appears 
to be
an invalid image source.
2010-01-24T14:11:22+01:00 DEBUG (7): start insert new item
2010-01-24T14:11:22+01:00 ERR (3): thumbnail error File
'http://interfacelift.com/wallpaper_beta/previews/02137_stonehenge.jpg' appears 
to be
an invalid image source.
2010-01-24T14:11:22+01:00 DEBUG (7): start insert new item
2010-01-24T14:11:22+01:00 ERR (3): thumbnail error File
'http://interfacelift.com/wallpaper_beta/previews/02136_magentamorning.jpg' 
appears
to be an invalid image source.
2010-01-24T14:11:22+01:00 DEBUG (7): cleanup old items
2010-01-24T14:11:22+01:00 DEBUG (7): destroy feed object
2010-01-24T14:11:22+01:00 DEBUG (7): start feed fetching "SS Feed das Bilder"
2010-01-24T14:11:22+01:00 DEBUG (7): load feed plugin
2010-01-24T14:11:22+01:00 DEBUG (7): load feed content
2010-01-24T14:11:22+01:00 DEBUG (7): plugins_rss_feed: 5 items fetched
2010-01-24T14:11:22+01:00 DEBUG (7): current date 26.10.2009 14:11:22
2010-01-24T14:11:22+01:00 DEBUG (7): start item fetching
2010-01-24T14:11:22+01:00 DEBUG (7): start insert new item
2010-01-24T14:11:22+01:00 ERR (3): thumbnail error File
'http://interfacelift.com/wallpaper_beta/previews/02140_romanbath.jpg' appears 
to be
an invalid image source.
2010-01-24T14:11:22+01:00 DEBUG (7): start insert new item
2010-01-24T14:11:22+01:00 ERR (3): thumbnail error File
'http://interfacelift.com/wallpaper_beta/previews/02139_theycoming.jpg' appears 
to be
an invalid image source.
2010-01-24T14:11:22+01:00 DEBUG (7): start insert new item
2010-01-24T14:11:22+01:00 ERR (3): thumbnail error File
'http://interfacelift.com/wallpaper_beta/previews/02138_mrniceguy.jpg' appears 
to be
an invalid image source.
2010-01-24T14:11:22+01:00 DEBUG (7): start insert new item
2010-01-24T14:11:22+01:00 ERR (3): thumbnail error File
'http://interfacelift.com/wallpaper_beta/previews/02137_stonehenge.jpg' appears 
to be
an invalid image source.
2010-01-24T14:11:22+01:00 DEBUG (7): start insert new item
2010-01-24T14:11:22+01:00 ERR (3): thumbnail error File
'http://interfacelift.com/wallpaper_beta/previews/02136_magentamorning.jpg' 
appears
to be an invalid image source.
2010-01-24T14:11:22+01:00 DEBUG (7): cleanup old items
2010-01-24T14:11:22+01:00 DEBUG (7): destroy feed object

Original comment by k.kr...@gmail.com on 24 Jan 2010 at 1:17

GoogleCodeExporter commented 8 years ago
Do you have the GD Library installed on your php installation? You can check 
this by
using the phpinfo() function.

Original comment by zzuzzlwuzzl@googlemail.com on 24 Jan 2010 at 3:58

GoogleCodeExporter commented 8 years ago
Yes, it's installed:

GD enabled, bundled (2.0.34 compatible)
GIF Read Support    enabled
GIF Create Support  enabled
JPG Support     enabled
PNG Support     enabled
WBMP Support    enabled
XBM Support     enabled 

Original comment by k.kr...@gmail.com on 24 Jan 2010 at 4:05

GoogleCodeExporter commented 8 years ago
Have you tested the write access on /data/thumbnails? (set them to 777 for 
testing it).

I updated the wideimage library to the newest version (the old one was beta). 
The
next release (1.3) will contain the newest version. Possible that this solve 
the problem!

Original comment by zzuzzlwuzzl@googlemail.com on 24 Jan 2010 at 6:06

GoogleCodeExporter commented 8 years ago
Checked with 777 for all folders and files in /data - still the same problem.

Notice something else, could be related: If you add a feed, the favicon is 
always the
generic one, not the sites favicon. Even if I set it manually to
http://www.example.com/favicon.ico. File on my server (/tmp/example.ico) are 
working.

I'll checkout from SVN and try with these files.

Original comment by k.kr...@gmail.com on 25 Jan 2010 at 6:25

GoogleCodeExporter commented 8 years ago
Did a checkout from SVN (Rev 69) - no change.

Added a customer errorhandler, results are:
/application/Bootstrap.php: 187
(Notice) Trying to get property of non-object

/application/Bootstrap.php: 192
(Notice) Trying to get property of non-object

/library/Zend/Loader.php: 164
(Warning) fopen(/[...]/application/views/helpers/Translate.php): failed to open
stream: No such file or directory
(Warning) fopen(/[...]/application/views/helpers/PartialLoop.php): failed to 
open
stream: No such file or directory
(Warning) fopen(/[...]/application/controllers/helpers/Json.php): failed to open
stream: No such file or directory

Which is true, the three files are not in the project.

Original comment by k.kr...@gmail.com on 25 Jan 2010 at 2:52

GoogleCodeExporter commented 8 years ago
The Zend Loader errors seems to be ok, because the Zend Loader tries to load the
View_Helper from applications directory first.

Is allow_url_fopen in your php.ini set to true?

I think the error occurs on line 223 in library/WideImage/WideImage.php. There
WideImage checks whether a valid gd resource was found.

Original comment by zzuzzlwuzzl@googlemail.com on 25 Jan 2010 at 6:41

GoogleCodeExporter commented 8 years ago
No it's not, and I can't change that :(
My Provider does not give access to my php.ini or to change this setting via
ini_set('allow_url_fopen', 1)

Original comment by k.kr...@gmail.com on 25 Jan 2010 at 7:24

GoogleCodeExporter commented 8 years ago
Hm, thats really bad. Can you set the param using the .htaccess file. Just add
php_flag allow_url_fopen on

Original comment by zzuzzlwuzzl@googlemail.com on 25 Jan 2010 at 8:52

GoogleCodeExporter commented 8 years ago
.htaccess with "php_flag allow_url_fopen on" will result in Server Error 500.
A one line php.ini with "allow_url_fopen = on" did the job.

With that change, it's running as expected: Fotofeeds working.
But is my website open to Cross-Site-Attacks with that setting?

Original comment by k.kr...@gmail.com on 26 Jan 2010 at 7:44

GoogleCodeExporter commented 8 years ago
Cool, I'm glad that rsslounge are working now.

"allow_url_fopen off" prevents the usage of urls in functions like "fopen" or
"file_get_contents". It offers a additional security, but setting it to off 
will not
open a security hole. On my hosting its per default on.

Original comment by zzuzzlwuzzl@googlemail.com on 26 Jan 2010 at 8:42