Admin Options Missing

open (4 posts) (4 voices)

  1. dlfadm
    Member

    I'm trying to run down an issue on a site that I'm migrating to a new server. On the new server, I cannot look at the Construct Options menu in the admin though. I took a look at the logs and I found this:


    [Wed May 11 09:31:19.086959 2016] [:error] [pid 23725] [client ip:51921] PHP Fatal error: Uncaught Error: Function name must be a string in /var/www/wp-content/themes/construct/lib/admin/classes/option-generator.php:38\nStack trace:\n#0 /var/www/wp-content/themes/construct/lib/admin/admin.php(105): mysiteOptionGenerator->__construct(Array)\n#1 /var/www/ wp-includes/plugin.php(525): mysiteAdmin::options('')\n#2 /var/www/wp-admin/admin.php(236): do_action('toplevel_page_m...')\n#3 {main}\n thrown in /var/www/wp-content/themes/construct/lib/admin/classes/option-generator.php on line 38, referer: https://website/wp-admin/admin.php?page=stats

    I removed and reinstalled the construct theme; disabled all plugins, restarted servers, etc.

    This is running on PHP7 on a basic Ubuntu 16.04 setup. Any suggestions on what to try?

    Thanks!

    Posted 1 year ago #
  2. bothclst
    Member

    I ran into this problem on all my MySiteMyWay themes when I update my sites to PHP7. They seem to share a file called /lib/admin/classes/option-generator.php in the theme directory and line 38 of that file is illegal in PHP7. Just change line 38 to this:

    $out .= $this->{$option['type']}( $option );

    Notice the curly brackets that have been added? This is necessary in PHP7 to overcome new order-of-evaluation rules. This change does not hurt the functioning of the sites under PHP5, but it is essential to the functioning of the site in PHP7.

    Is anyone maintaining MySiteMyWay themes any longer? If so, please make this change in all the themes the next time they are revised.

    Posted 1 year ago #
  3. OnePressTech
    Member

    Thanks for the tip bothclst...much appreciated :-)

    No one form MSMW has been on this site or responded to contact requests for over 8 months.

    I will be managing a community fork in github for my clients and anyone else who is interested. I will add this fix.

    Posted 1 year ago #
  4. debmc99
    Member

    Just to verify, I am using the Persuasion theme. So when upgrading to PHP7, all I have to do is find the file called /lib/admin/classes/option-generator.php in the theme directory and change line 38 to this?

    $out .= $this->{$option['type']}( $option );

    Posted 1 year ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme