• Hello

    I have inherited a website that has a problem. (I know very little about wordpress). I am assuming that this is an error within the virtue theme.

    You get the error loading the main page and the admin page, so I cannot get into the site at all. I do have access to the database.

    I get the following fatal error:

    Fatal error: Uncaught Error: Attempt to modify property “admin_notices” on null in /wp-content/themes/virtue/themeoptions/inc/class.redux_filesystem.php:29

    Stack trace: #0 /wp-content/themes/virtue/themeoptions/inc/class.redux_filesystem.php(47): Redux_Filesystem->__construct() #1 /wp-content/themes/virtue/themeoptions/inc/class.redux_filesystem.php(285): Redux_Filesystem::get_instance()

    There are more entries in the stack section I can post if you want.

    Any help with how to resolve would be very much appreciated.

    Thanks
    Richard

    • This topic was modified 2 years, 6 months ago by rhobbs.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • hannah

    (@hannahritner)

    Hi Richard,
    Sorry to hear this. Are you updated on your versions of the theme, WordPress and your plugins? I suggest deactivating your plugins to test if any are conflicting. Your host should be able to help you backup so you can get access to the admin. Let me know if not!

    Kindly,
    Hannah

    Thread Starter rhobbs

    (@rhobbs)

    Hello

    Thanks for the reply. I do not know how to deactivate plugns, especially as I cannot access the admin site.

    I will speak to the host but I am not sure how they will help me access the admin site.

    Thanks
    Richard

    hannah

    (@hannahritner)

    Your host should be able to help you backup so you can regain access to the admin. Let me know if they’re unable to help.

    Best,
    Hannah

    Hi,

    Visit the error folder shown ‘wp-content/themes/virtue/themeoptions/inc/class.redux_filesystem.php:29’

    and delete or comment that function:

    // public function __construct() {
                //     $this->parent->admin_notices[] = array(
                //         'type'    => 'error',
                //         'msg'     => '<strong>' . __( 'File Permission Issues', 'redux-framework' ) . '</strong><br/>' . sprintf( __( 'We were unable to modify required files. Please check your permissions, or modify your wp-config.php file to contain your FTP login credentials as <a href="%s" target="_blank">outlined here</a>.', 'redux-framework' ), 'https://codex.www.ads-software.com/Editing_wp-config.php#WordPress_Upgrade_Constants' ),
                //         'id'      => 'redux-wp-login',
                //         'dismiss' => false,
                //     );
                // }

    Your plugin and website should work

    Hi @ernestaryee ,
    thanks for the solution.
    Just curious any idea, what the issues is ?
    by commenting out the above code, hope I’m not disabling something critical.
    Could you maybe tell me what this is ? please.

    hannah

    (@hannahritner)

    Hi @mlaungani
    What are you hoping to achieve? If you’re editing code you need to be using a child theme. Can you explain what issue you’re experiencing?

    Kindly,
    Hannah

    BruceManning

    (@brucemanning)

    This fix helped me a lot with my site running the Ascend theme – thanks very much.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal error: Uncaught Error: Attempt to modify property “admin_notices”’ is closed to new replies.