Support » Plugin: RecipePress Reloaded » Warning: opendir(/var/www/web715/html/wordpress/wp-content/themes/sparkling/rpr_

  • Resolved schwkim

    (@schwkim)


    Hi Jan,
    after my update today all symbols like Ü Ö Ä are corrupt and I´m getting the following error message:

    Warning: opendir(/var/www/web715/html/wordpress/wp-content/themes/sparkling/rpr_layouts/): failed to open dir: No such file or directory in /var/www/web715/html/wordpress/wp-content/plugins/recipepress-reloaded/php/helper/admin_menu_helper.php on line 236

    Is there any way to fix that issue shortly ?

    https://wordpress.org/plugins/recipepress-reloaded/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jan Koester

    (@dasmaeh)

    I can’t tell you why your Umlaute are corrupt. Both my testing system and my personal blog are running in German so I am sure the plugin works as expected. All my Umlaute are still there. Please make sure there is no other problem on your system.

    Could you provide a link for me to check?

    About the warning: This is not really to worry about. If it annoys you edit php/helper/admin_menu_helper.php lines 236 to match

    if ( file_exists($dirname)){
    		if ($handle = opendir( $dirname )) {
    			while (false !== ($file = readdir($handle))) {
    				if( $file !='.' && $file !='..' && $file != '.svn' ) {
    					if( file_exists($dirname . $file . '/settings.php') ){
    						include_once( $dirname . $file . '/settings.php' );
    					}
    
    				}
    			}
    		}
    		}

    Thread Starter schwkim

    (@schwkim)

    At the File on the server is the following included:

    236 – 247

    if ($handle = opendir( $dirname )) {
    		while (false !== ($file = readdir($handle))) {
    			if( $file !='.' && $file !='..' && $file != '.svn' ) {
    				if( file_exists($dirname . $file . '/settings.php') ){
    					include_once( $dirname . $file . '/settings.php' );
    				}
    
    			}
    		}
    	}
    
    	return $layout_settings;

    Plugin Author Jan Koester

    (@dasmaeh)

    That’s right. Please add the outer

    if ( file_exists($dirname)){
    ...
    }

    to get rid of the warning.

    Thread Starter schwkim

    (@schwkim)

    Thanks Jan, after changing the helper.php everything is working fine.

    Have a nice evening!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warning: opendir(/var/www/web715/html/wordpress/wp-content/themes/sparkling/rpr_’ is closed to new replies.