× Discussion about Hot Lightbox Joomla module.

Unable to open lightbox

More
4 years 2 months ago #45743 by cliche
I installed lightbox plugin on my wordpress site, but when I try to add a lightbox I get this error.

Warning: mkdir(): No such file or directory in /home/onlakelanier/public_html/wp-content/plugins/hot_lightbox/hot_lightbox.php on line 285

Warning: opendir(/home/onlakelanier/public_html/wp-content/plugins/hot_lightbox/lightbox/): failed to open dir: No such file or directory in /home/onlakelanier/public_html/wp-content/plugins/hot_lightbox/hot_lightbox.php on line 260

What am I doing wrong?

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #45744 by nikola.mihajlovic
Hello,

looks like your permissions are set too tight on your WP plugins dir. Please set right permissions to your whole site, and try again. For files it should be 644 and for folders 755.

Best regards,
Nikola Mihajlovic

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #45745 by cliche
Replied by cliche on topic Unable to open lightbox
Unfortunately that is not the problem. I already checked. Folders are 755.
Attachments:

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #45748 by nikola.mihajlovic
Hello,

could you check are files and folders for that plugin exists in path that is given by error and warning? If no, copy plugin into plugin folder.
The following user(s) said Thank You: cliche

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #45754 by cliche
Replied by cliche on topic Unable to open lightbox
Ok, I figured out what is happening. I am no programmer, so I'm not sure how to fix it.

The lightbox plugin is looking in the root path of the PLUGIN to find my original images folder. It then creates the thumbs directory there. The problem now is that it is looking in the root directory of the SITE for the thumbnail images to display. I am sure this is the case, because it was not displaying the thumbnails, so I manually copied the thumbnail files into a folder public_html/lake_lanier/thumbs to make it display correctly.

The original image files (and the thumbs directory and files the plugin created) are in public_html/wp-content/plugins/hot_lightbox/lake_lanier/ - that is how I got rid of the original error message I was getting. Then when I click on one of the displayed thumbnails it cannot find the original files because again it is looking in the wrong directory I presume.

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #45758 by nikola.mihajlovic
Hello again,

can you open hot_lightbox.php and on line 285 find

mkdir($images_dir."thumbs", 0755);

and edit it to be

mkdir($images_dir."thumbs", 0755, true);

and see if that changes things.

Please Log in or Create an account to join the conversation.

Moderators: milos
Time to create page: 0.145 seconds