• Resolved nitinsinghal

    (@nitinsinghal)


    Hello

    When I click on the Activate button, I am getting this error:

    “Parse error: syntax error, unexpected ‘?’ in …/plugins/mobile-menu/options-framework/lib/class-admin-page.php on line 76”.

    is this something related to my PHP version?

    My PHP Version is 5.6.40 and I am sorry, but right now I can’t upgrade to the 7 version.

    Please help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Rui Guerreiro

    (@takanakui)

    Hi @nitinsinghal

    Let’s try to replace this code that starts on line 74

    public function createAdminPanel( $settings )
        {
            $settings['parent'] = $this->settings['id'] ?? null;
            return $this->owner->createAdminPanel( $settings );
      }

    by this one

    public function createAdminPanel( $settings ) {
    		
    		if ( ! isset( $this->settings['id'] ) ) {
    			$settings['parent'] = null;
    		}
    
    		return $this->owner->createAdminPanel( $settings );
    	}

    Let me know if it worked so I can release an update with that fix.
    Thanks.

    Thread Starter nitinsinghal

    (@nitinsinghal)

    Hi @takanakui

    Thanks for the quick update. The plugin is activated successfully.

    I hope you can release an update with that fix.

    Thanks

    ozzdogg

    (@ozzdogg)

    Just wanted to register that the same error happened on my site, and confirm that your code change solved the problem.

    Thanks
    Chris

    Plugin Author Rui Guerreiro

    (@takanakui)

    Thanks @ozzdogg and @nitinsinghal
    Will release an update with that change.

    Plugin Author Rui Guerreiro

    (@takanakui)

    I just released the version 2.8.2.1

    Let me know if there is any issue.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Fatal error’ is closed to new replies.