• Site was fine and then it came down – both front end and backend until I deactivated the plugin. When I try to reactivate, it throws the following error:

    Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /home3/virgiol4/public_html/wp-content/plugins/uncanny-learndash-toolkit/src/admin-menu.php on line 3

    Help – mine is a paid subscription site and it is not able to be used right now. What a mess…

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Uncanny Owl

    (@uncannyowl)

    It sounds like you may be using an unsupported version of PHP. Are you using version 5.6 or higher?

    Thread Starter bluecrabfan

    (@bluecrabfan)

    Thank you for your quick reply. I just updated it to 5.6 and says it was successful. I refreshed the page and tried to activate the plugin again. It still says Plugin could not be activated with the same error message.

    Do you think it needs some time to take effect? Or could there be another issue here?

    Plugin Author Uncanny Owl

    (@uncannyowl)

    It should be instant, but you can verify the version by navigating to LearnDash LMS > Settings > Support in the back end. It is worrisome that it was a previous version of PHP before though; earlier versions aren’t safe and WordPress recommends 7 or higher.

    Thread Starter bluecrabfan

    (@bluecrabfan)

    7.0 was still listed as “beta” at my hosting company (BlueHost), so I didn’t realize it was necessary. Anyway, I updated it to 7 and it’s still throwing the error… It’s not possible that there’s something else askew?

    Plugin Author Uncanny Owl

    (@uncannyowl)

    Were you able to confirm via the LearnDash support page in the earlier message that WordPress recognizes that it’s running a PHP version that’s 5.6 or higher? That really should be verified first.

    Sorry, to confirm, it’s 5.6 that’s the requirement (as listed on our plugin page). WordPress recommends 7 or higher though, as do we, but 7 is not a requirement.

    Thread Starter bluecrabfan

    (@bluecrabfan)

    Yes – I did confirm. It says version 7.0 for php.

    Plugin Author Uncanny Owl

    (@uncannyowl)

    Our development team suggests a few possible interventions here. First, try disabling all other plugins except LearnDash and the Toolkit, then see if the error still occurs. It would help to rule out another plugin conflict on your site. If you’re comfortable editing the files by FTP, you can also try removing the blank lines in line 2 of admin-menu.php and boot.php to see if that resolves things for you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Uncanny Toolkit throwing fatal error’ is closed to new replies.