WordPress.org

Ready to get started?Download WordPress

Forums

Enhanced Simple PHP Gallery (18 posts)

  1. gutielua
    Member
    Posted 8 years ago #

    I have this problem, but I dont know what's wrong, somebody can help me???

    Grazie!

    Warning: readdir(): supplied argument is not a valid Directory resource in /home/gutielua/public_html/wordpress/gallery/sp_helper_functions.php on line 10

    Warning: Invalid argument supplied for foreach() in /home/gutielua/public_html/wordpress/gallery/sp_helper_functions.php on line 452

  2. Joshua Sigar
    Member
    Posted 8 years ago #

    What's on line 10 of the file sp_helper_functions.php?

  3. gutielua
    Member
    Posted 8 years ago #

    LINE 10
    while (false !== ($filename = readdir($dh)))

    line 452
    foreach(getDirList($dir) as $file)

  4. Joshua Sigar
    Member
    Posted 8 years ago #

    Can you post the content of the file: sp_helper_functions.php here: http://paste.uni.cc ?

  5. gutielua
    Member
    Posted 8 years ago #

    Done!

    Tnx!

  6. gutielua
    Member
    Posted 8 years ago #

  7. Joshua Sigar
    Member
    Posted 8 years ago #

    What code you put to display the gallery?

  8. gutielua
    Member
    Posted 8 years ago #

  9. jwurster
    Member
    Posted 8 years ago #

    What exactly was the fix as I am having the same problem? I saw the code paste but don't see where the change might have been.
    Thank you, jim

  10. jwurster
    Member
    Posted 8 years ago #

    Sorry, I posted by mistake.

  11. gutielua
    Member
    Posted 8 years ago #

    This is a link for a friend, I have the same problem, and I saw many page too... Will not compatible with WP 1.5.2??

    http://www.lswon.com/gallery/

    http://www.lswon.com/gallery/folder/cars

  12. jwurster
    Member
    Posted 8 years ago #

    Your error is /home/.tabathawasherkiln/lswon/lswon.com/gallery/sp_helper_functions.php

    The problem is the location. The "." should not be there. Perhaps when you edited a file, you made a type. At least that's what I think.

  13. lswon
    Member
    Posted 8 years ago #

    Wow, I just realized I was having this problem after Gutiela posted the link to my gallery. Have there been any fixes to this problem?

    jwurster: the problem is not the lcation. This script worked perfectly fine before 1.5.2

  14. gutielua
    Member
    Posted 8 years ago #

    Hi lswon, I tried tou use your gallery guide on my blog. That's the reason I saw the problem.

    I saw the same problem on many blogs, I check one thing similar, we use mx4_theme.

    The strange is if your install the original source without personalize, works. But crash to integrate to worpress with mx_theme.

  15. lswon
    Member
    Posted 8 years ago #

    Gutiela, I managed to find a fix for the problem on the support forum for spg.

    Courtesy of DeGrey:

    Change line 8 in sp_helper_functions.php from

    $input_dir = $dir;

    to

    $input_dir = $_SERVER['DOCUMENT_ROOT'] . '/gallery' . str_replace('.','',$dir);

    with /gallery being the path of your gallery

  16. StevenP
    Member
    Posted 8 years ago #

    Hi, I do not know if that is the right place to post... but

    I have this strange problem with eSG. It will always list the directories that are available above the acutal page. Does anyone have a clue how I could I correct this?

    http://root.schulaufgaben-forum.de/mundogrande/WP/gallery/index.php

    Thanks so much!!!

  17. gutielua
    Member
    Posted 8 years ago #

    Tnx Danny (lswon)

    I will fix it on mi BLOG... Regards!

    @ndrés

  18. gutielua
    Member
    Posted 8 years ago #

    Now works lswon...

    ¡Tnx for all!

Topic Closed

This topic has been closed to new replies.

About this Topic