Support » Plugin: BackUpWordPress » Getting php-warning with BackUpWordPress 2.4.1

  • Resolved te-online

    (@thomasebert)


    It says

    Warning: Invalid argument supplied for foreach() in /pathtowordpress/wp-content/plugins/backupwordpress/classes/class-schedule.php on line 930

    If I look into line 930 it says

    foreach ( glob( $haystack . '/*', GLOB_ONLYDIR | GLOB_NOSORT ) as $folder ) {
    
    			$pos = strpos( $folder, $needle );
    
    			$default_path = get_option( 'hmbkp_default_path' );
    
    			if ( ( false !== $pos ) && ( $folder !== $default_path ) ) {
    
    				$found_folders[] = trailingslashit( $folder );
    
    			}
    
    		}

    And if I do print_r on glob(…) – I get an array, don’t understand what’s wrong (it runs on a different server, though…).

    Additionally, sorry to say, but there are still problems with the translations!

    Thanks for help!

    http://wordpress.org/plugins/backupwordpress/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Paul de Wouters

    (@pauldewouters)

    te-online

    thanks for reporting this issue.
    Are you running v2.4?
    Would you mind clicking “Enable support” from the site where this is happening?

    The translations need to be updated for 2.4, you’re welcome to help translate to your language 🙂

    Thread Starter te-online

    (@thomasebert)

    Hi Paul,

    Thanks for your reply. I enabled support, although I don’t like it transfers my htaccess-password… Should I send you a message via this later?

    Only experiencing the warning on this particular WordPress instance of five updated ones so far – so it might be some tiny problem.

    Concerning translations, I also translated some content before so I will look into your translation page whether there is something new. I just thought something was wrong because there are still strings not translated that where translated before and problems with capital/non-capital letters (I use German translation).

    Thread Starter te-online

    (@thomasebert)

    Hello again,

    I added the missing translation for German and sent you a request via the Support system.

    Plugin Contributor Paul de Wouters

    (@pauldewouters)

    te-online

    thanks

    I updated the strings on translate.hmn.md

    Thread Starter te-online

    (@thomasebert)

    Translated that, too.

    Have a nice weekend

    Hi,
    New to the plugin — recommended by another great plugin developer, but my php error log filled up! Couldn’t do much w/blog after that as the errors came in every few seconds. Deactivated it.
    Version 2.4.1 on WP 3.8 latest.
    Server Type: Apache
    Operating System: Linux
    PHP: 5.3.27

    The 1st test went fast and equivalent to phpMyadmin.

    Same as type error message as above:
    [21-Jan-2014 00:19:19 America/Chicago] PHP Warning: json_encode() [function.json-encode]: Invalid UTF-8 sequence in argument in /home/username/public_html/wp-content/plugins/backupwordpress/classes/class-schedule.php on line 739

    Also:

    [21-Jan-2014 00:03:34 America/Chicago] PHP Warning: shell_exec() has been disabled for security reasons in /home/username/public_html/wp-content/plugins/backupwordpress/classes/class-requirements.php on line 277

    [21-Jan-2014 00:04:13 America/Chicago] PHP Warning: shell_exec() has been disabled for security reasons in /home/username/public_html/wp-content/plugins/backupwordpress/classes/class-requirements.php on line 254

    Plugin Contributor Paul de Wouters

    (@pauldewouters)

    protechs2

    Could you open a new topic for your issue?

    thanks

    I am not sure how this issue was resolved. I just updated to v2.4.1 and now I am getting the same error message on every page in the admin:

    Warning: Invalid argument supplied for foreach() in /path-to-content/plugins/backupwordpress/classes/class-schedule.php on line 930

    What is the resolution for this error?

    Plugin Author Tom Willmot

    (@willmot)

    It’s been fixed in trunk (here: https://github.com/humanmade/backupwordpress/pull/433).

    We’ll be releasing 2.4.2 asap.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Getting php-warning with BackUpWordPress 2.4.1’ is closed to new replies.