Hi!
Actually the plugin code instructs to only cache for an hour. Can you check your templates_c directory? It should contain a "serendipity_plugin_heavyrotation.txt" file, check its last modiufication time?
Regards,
Garvin
Board index ‹ Plugins ‹ »Heavy Rotation« - Your top album in the last week
27 posts
• Page 2 of 2 • 1, 2
Re: »Heavy Rotation« - Your top album in the last weekHi!
Actually the plugin code instructs to only cache for an hour. Can you check your templates_c directory? It should contain a "serendipity_plugin_heavyrotation.txt" file, check its last modiufication time? Regards, Garvin # Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/ # or use my PayPal account "paypal {at} supergarv (dot) de" # My "other" hobby: http://flickr.garv.in/
Re: »Heavy Rotation« - Your top album in the last weekuser@server1:/html/blog/templates_c$ ls -la serendipity_plugin_heavyrotation.txt
-rw-r--r-- 1 user user 72 2009-04-15 12:28 serendipity_plugin_heavyrotation.txt When I delete the file (or create an empty new one), the sidebar doesn't display at all. I have tried reinstalling the plugin, but that doesn't help (nor does it create a new cache file for it).
Re: »Heavy Rotation« - Your top album in the last weekHi!
If the sidebar does not display, this would mean a fatal PHP error. HAve you looked inside the PHP error log and/or the HTML sourcecode to check for PHP errors? To me it sounds as if the file cannot be written anymore, maybe due to permissions or a change in the server setup. Regards Garvin # Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/ # or use my PayPal account "paypal {at} supergarv (dot) de" # My "other" hobby: http://flickr.garv.in/
Re: »Heavy Rotation« - Your top album in the last week
I've played around with various permissions, but it doesn't help. Other cached content can be written fine. If i create the file with a simple "touch", the error message stays the same. If I edit the file and put *anything* in it, the sidebar displays (no php errors). If I then change the file date to some older date, I get the following error:
Re: »Heavy Rotation« - Your top album in the last weekHi!
Sadly I don't know much of the plugin. Currently it seems like it cannot recreate the .txt file as long as your "uploads" directory was recently modified; this is where the images for heavrotation are saved, and the code checks this as well. If you edit the plugin.inc.php file and change:
to:
then the plugin should hopefully properly recreate the .txt file, and also update it accordingly. HTH, Garvin # Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/ # or use my PayPal account "paypal {at} supergarv (dot) de" # My "other" hobby: http://flickr.garv.in/
Re: »Heavy Rotation« - Your top album in the last weekHi!
Hm, I'm really sorry for this. On my installation it basically works, so I'm not sure which could be the exact reason here. I could offer to have a look at your installation, if you can/want to provide me with FTP access to the site. Contact me via PM, if you'd like to try that. Best regards, Garvin # Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/ # or use my PayPal account "paypal {at} supergarv (dot) de" # My "other" hobby: http://flickr.garv.in/
Re: »Heavy Rotation« - Your top album in the last weeki'd be grateful for help, i still experience the same problem, the cache file doesn't seem to get updated:
Re: »Heavy Rotation« - Your top album in the last weekHi!
It's hard to say without access to the server.... the permissions look okay if your PHP user is 'web'. Regards, Garvin # Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/ # or use my PayPal account "paypal {at} supergarv (dot) de" # My "other" hobby: http://flickr.garv.in/
Re: »Heavy Rotation« - Your top album in the last weekwhen i look at this:
and this:
i am getting an idea of the error [add] but if that doesnt help you, tell php to log errors perhaps will help. in your php.ini change error_reporting:
in your .htaccess insert:
of course /path/to/php.log has to be writeable by your webserver, "user" or "web", whatever it is;-)
Re: »Heavy Rotation« - Your top album in the last weekthe user names are consistent within the respective posts, both times i have edited my real username. you are right, i should have used the same edited name to avoid confusion.
i don't get any php errors logged until i delete the .txt , then i get [01-Feb-2010 13:43:59] PHP Fatal error: Uncaught exception 'serendipity_plugin_heavyrotation_albumhandler_chickeneggproblem' with message 'Could not read image from a file. Error was: File /var/www/htdocs/web51/html/blog/templates_c/serendipity_plugin_heavyrotation.txt does not exists' in /var/www/htdocs/web51/html/blog/plugins/serendipity_plugin_heavyrotation/lib/albumhandler.php:208 if i manually edit the heavyrotation.txt and chance it to a different artist/album, i don't get any errors logged, but the picture isn't downloaded/displayed.
27 posts
• Page 2 of 2 • 1, 2
Who is onlineUsers browsing this forum: No registered users and 0 guests |