Home Forums Theme support Eastend Theme – NextGen Gallery Issue

This topic contains 3 replies, has 2 voices, and was last updated by  7Theme Support 10 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Anonymous

    Having an issue using NextGen gallery. When I try to use the button to insert a gallery from the editor on the edit page, I get the following errors:

    Warning: scandir(../wp-content/themes/eastend/images/s_icons) [function.scandir]: failed to open dir: No such file or directory in /home/XXXXXXX/public_html/wp-content/themes/eastend/7league/config.php on line 30

    Warning: scandir() [function.scandir]: (errno 2): No such file or directory in /home/XXXXXXX/public_html/wp-content/themes/eastend/7league/config.php on line 30

    Warning: Invalid argument supplied for foreach() in /home/XXXXXXX/public_html/wp-content/themes/eastend/7league/config.php on line 31

    Warning: scandir(../wp-content/themes/eastend/images/s_icons) [function.scandir]: failed to open dir: No such file or directory in /home/XXXXXXX/public_html/wp-content/themes/eastend/7league/options.php on line 30

    Warning: scandir() [function.scandir]: (errno 2): No such file or directory in /home/XXXXXXX/public_html/wp-content/themes/eastend/7league/options.php on line 30

    Warning: Invalid argument supplied for foreach() in /home/XXXXXXX/public_html/wp-content/themes/eastend/7league/options.php on line 31

    Any ideas?

    Hi,

    thats not a big problem, you dont need the social icons on the nextgen gallery pop up window. If you want, you can open the files “options.php” and “config.php” in the “7league” folder and replace this:

    if(is_admin())
    	{
    	$allfiles = @scandir($socialdir);
    	foreach ($allfiles as $file) 
    		{ 
    	    	$fileinfo = pathinfo($socialdir."/".$file); 
    	    	if ($file != "." && $file != "..") 
    			{
    	    		$socials[]= $fileinfo['filename'];  
    	    		};
    	 	}; 
    	}

    with this:

    global $pagenow;
    
    if(is_admin() && pagenow == 'options-page.php' )
    	{
    	$allfiles = @scandir($socialdir);
    	foreach ($allfiles as $file) 
    		{ 
    	    	$fileinfo = pathinfo($socialdir."/".$file); 
    	    	if ($file != "." && $file != "..") 
    			{
    	    		$socials[]= $fileinfo['filename'];  
    	    		};
    	 	}; 
    	}

    Then you dont get this error message anymore

    Anonymous

    THANK YOU!!!!!! 🙂

    You’re welcome!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.