Keyword

(functiono.opendir) failed to open dir

  • Joseph Cain
  • Joseph Cain's Avatar Topic Author
  • Offline
  • New Member
More
16 years 8 months ago #6415 by Joseph Cain
(functiono.opendir) failed to open dir was created by Joseph Cain
I am getting this message on the content page where I have placed the gallery;

Warning: opendir(C:/wamp/www/images/stories/EC_gallery) [function.opendir]: failed to open dir: No error in C:\wamp\www\mambots\content\plugin_jw_sig.php on line 46

I am new at this so I am probably missing something obvious. I am running on a WAMP5 localhost set up. I looked in the showthumbnail.php file and could not figure out where to see if the permission is set at 777 or 775.

Any help would be greatly appreciated.

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

  • Panos Kosmidis
  • Panos Kosmidis's Avatar
  • Offline
  • Senior Member
  • Always SEARCH before asking!
More
16 years 8 months ago #6416 by Panos Kosmidis
Replied by Panos Kosmidis on topic Re: (functiono.opendir) failed to open dir
Try to turn off safe_mode.

INTERACTIVE WEB SOLUTIONS | Zend PHP 5 Certified Engineer

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

  • Joseph Cain
  • Joseph Cain's Avatar Topic Author
  • Offline
  • New Member
More
16 years 8 months ago #6417 by Joseph Cain
Replied by Joseph Cain on topic Re: (functiono.opendir) failed to open dir
The safe mode is off. I also checked and the php_dg2 extension is turned on.

Thanks

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

  • Panos Kosmidis
  • Panos Kosmidis's Avatar
  • Offline
  • Senior Member
  • Always SEARCH before asking!
More
16 years 8 months ago #6418 by Panos Kosmidis
Replied by Panos Kosmidis on topic Re: (functiono.opendir) failed to open dir
Hm.. do me a favor, above the line 46 there where the if statement starts put this line:
echo '[debug]'.$mosConfig_absolute_path.$rootfolder.$_images_dir_.'[/debug]';

so you must have something like this:
// read directory
echo '[debug]'.$mosConfig_absolute_path.$rootfolder.$_images_dir_.'[/debug]';
if ($dh = opendir($mosConfig_absolute_path.$rootfolder.$_images_dir_)) {

Then on your content items page, there where you putted the SIG you must have a message like:

[debug]/path/to/images[/debug]

i want from you to copy the extra text and reply back here.

Thanks.

INTERACTIVE WEB SOLUTIONS | Zend PHP 5 Certified Engineer

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

  • Joseph Cain
  • Joseph Cain's Avatar Topic Author
  • Offline
  • New Member
More
16 years 8 months ago #6419 by Joseph Cain
Replied by Joseph Cain on topic Re: (functiono.opendir) failed to open dir
Thank-you for your fast response.  I believe my original problem was caused by not having php_dg2 extension turned on. At that time I created new directories in the Media Manager named images and stories instead of using the pre-existing directories. That was when the message about the function:opendir came up. I now have now moved the jpgs into the correct file and it is working.

Again, thank-you so much for your help.

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

  • Panos Kosmidis
  • Panos Kosmidis's Avatar
  • Offline
  • Senior Member
  • Always SEARCH before asking!
More
16 years 8 months ago #6420 by Panos Kosmidis
Replied by Panos Kosmidis on topic Re: (functiono.opendir) failed to open dir
Ok nice! Some times some folders during the installation may corrupt ;)
Always prefer new directories not the  default ones :D

INTERACTIVE WEB SOLUTIONS | Zend PHP 5 Certified Engineer

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


Powered by Kunena Forum