PDA

View Full Version : Random Image Addon error msg in options.


napoleonesq
10-28-2006, 01:24 AM
I downloaded the random image addon, and when i go to see in options, i see this error message, and it doesnt work on my website. In fact it looks odd because it put the error message in the counter section of options....but the counter appears to be workign fine.

I am a newbie, so bear with me :)
www.tonyforberg.com


Here is a copy paste of what i see in options.

Pixelpost View Counter (counter - version 0.1) - status: ON
Display the number of hits a photo has endured.
<IMAGE_COUNTER_VIEWS> : The number of hits for this picture.

Warning: main(../addons/random_image.php): failed to open stream: Permission denied in /home/napoleon/public_html/pixelpost/admin/view_addons.php on line 47

Warning: main(../addons/random_image.php): failed to open stream: Permission denied in /home/napoleon/public_html/pixelpost/admin/view_addons.php on line 47

Warning: main(): Failed opening '../addons/random_image.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/napoleon/public_html/pixelpost/admin/view_addons.php on line 47

Pixelpost View Counter (random_image - version 0.1) - status: ON
Display the number of hits a photo has endured.
<IMAGE_COUNTER_VIEWS> : The number of hits for this picture.

umar
10-28-2006, 03:29 AM
ive had the same problem, so you're not alone on this one.
anyone have a solution?

napoleonesq
10-28-2006, 07:10 PM
No one with solutions? :)

Dennis
10-30-2006, 08:16 AM
I trust the file is existing in the addon folder.

Look at the rights, what is the setting on the file and is it different compared to other files in that folder?

kristarella
12-01-2006, 11:10 PM
Sorry, what did that mean. I have the same problem but what "setting" on the file and which folder? The Addons folder?

I think it might be that there's an error in the file and it's causing the addon to not be complete. I don't have the View Counter as above but I have anti-spam and I get this

Warning: main(../addons/random_image.php) [function.main]: failed to open stream: Permission denied in /nfsn/content/kristarella/htdocs/photoblog/admin/view_addons.php on line 47

Warning: main(../addons/random_image.php) [function.main]: failed to open stream: Permission denied in /nfsn/content/kristarella/htdocs/photoblog/admin/view_addons.php on line 47

Warning: main() [function.include]: Failed opening '../addons/random_image.php' for inclusion (include_path='.:/nfsn/apps/php/lib/php/') in /nfsn/content/kristarella/htdocs/photoblog/admin/view_addons.php on line 47
Pixelpost Anti-Spam (random_image - version 1.0) - status: ON

I actually get two boxes which barred spam words, it seems to be causing the previous addon to repeat itself. Unfortunately I don't think I have the PHP skills to find the glitch.

kristarella
12-01-2006, 11:13 PM
Seems downloading the new one will fix it... http://forum.pixelpost.org/showthread.php?t=5287&highlight=random+image

austriaka
12-01-2006, 11:19 PM
1) go to your site with your favorite FTP program
2) open the addons-folder
3) do a right click on the file "random_image.php"
4) look for something like "CHMOD" or "permissions"or "file attributes"
5) it shoud say something like "644" or "-rw-r--r--"
6) That means:
Owner permission: read, write
Group permission: read
Public permission: read
6) if it doesn't match that, change it.

The error shown in options just says that: permission denied.
HTH
KArin

kristarella
12-03-2006, 03:30 AM
Thankyou! It's showing up in the admin correctly now :)