• Resolved abelwang

    (@abelwang)


    After i restore the db it appear this error!!
    any help please!!

    Warning: array_merge(): Argument #2 is not an array in D:\server\website\htdocs\classified\wp-content\themes\classipress\framework\scb\Options.php on line 44

    This is the code

    `public function get( $field = null, $default = null ) {
    $data = array_merge( $this->defaults, get_option( $this->key, array() ) );

    return scbForms::get_value( $field, $data, $default );
    }`

    I believe it’s the database error i have not problem with manually back up using phpmyadmin and restore. but after restore with the db from this plugin it show me the error..

    https://www.ads-software.com/plugins/updraftplus/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Hi,

    Warning: array_merge(): Argument #2 is not an array in D:\server\website\htdocs\classified\wp-content\themes\classipress\framework\scb\Options.php on line 44

    The “themes\classipress” in there tells you that the message is coming from the Classipress theme…. they’d be the people who could say how to interpret it in the context of their code…

    (It may just be that you should turn off the display of debugging messages on your website – it’s not normal in production to have PHP send its messages to the browser, instead of to a log file).

    Best wishes,
    David

    Thread Starter abelwang

    (@abelwang)

    Hi the fact is the debug message is already been turned off.. and it does not have problem with restore db from exported using phpmyadmin.

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Hi,

    If PHP debug messages show, despite no settings to show them being on, then something must be wrong with the PHP install. i.e. It seems your PHP settings do not work. You will need to talk to whoever manages the PHP setup about that – usually the web hosting company.

    Best wishes,
    David

    Thread Starter abelwang

    (@abelwang)

    Thank you, i think i have solve the problem by replace this line
    $data = array_merge( $this->defaults, get_option( $this->key, array() ) );
    With
    $data = array_merge( $this->defaults, (array)$data );

    But the themes options has been reset. other than that all data remains the same. after i set up the theme options i replace back the line again, the error gone away.. very weird error..

    Really it’s very helpful.

    Many many thanks to abelwang

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Urgent!! Db Restore error’ is closed to new replies.