• Resolved alx359

    (@alx359)


    After bumping into ASE from Reddit was curious to try another of your plugins. Installed on localhost (WAMP) but unfortunately it isn’t working for me. Upon activation it takes forever to load, to finally stop with a “There has been a critical error on this website”. With PHP8.1 debug.log gets suddenly filled with 10’s of thousands of deprecated entries, so I swapped to PHP8.0 instead, but even so still got some errors, and the plugin screen won’t load:

    PHP Warning: Undefined array key "HOME" in \wp-content\plugins\system-dashboard\admin\class-system-dashboard-admin.php on line 2276
    PHP Warning: Undefined array key "DOCUMENT_URI" in \wp-content\plugins\system-dashboard\admin\class-system-dashboard-admin.php on line 2491
    
    PHP Fatal error: Maximum execution time of 300 seconds exceeded
    
    PHP Warning: Undefined variable $classes_output in \wp-content\plugins\system-dashboard\admin\class-system-dashboard-admin.php on line 234

    After a few tries the plugin screen finally loaded up. At glance there seems to be a lot of good stuff in there. Noticed in many places though can’t see things because of an Undetectable. Please enable 'shell_exec' function in PHP first. Re-checked my php.ini but it should be working.

    So I suppose there’s some kind of incompatibility lurking in Windows/WAMP/PHP8.x that hope you’d address at some point.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Bowo

    (@qriouslad)

    @alx359 thanks for reporting this in great details. I haven’t been using WAMP for a very long time, and System Dashboard was never intended for local sites, though it should work with LocalWP. Maybe when I have some free time in the future and not working on my other plugins, I’ll investigate this.

    As for shell_exec, that is noted too. Again, could be some Windows/WAMP/PHP thing that doesn’t quite relay it all the way to WordPress.

    Plugin Author Bowo

    (@qriouslad)

    @alx359 I’ve just had time to properly look into this. Please update to v2.8.6 and see if it fixes the issue. One other thing, I just noticed you’re testing this on a multi-site, which I’ve not built / tested System Dashboard for. Hope it works!

    Thread Starter alx359

    (@alx359)

    Hey @qriouslad,

    Thanks for looking into this. The good news is that nothing seems to break anymore, at least in PHP8.0

    Otherwise still timeouts, unfortunately. Needs a few minutes/attempts to load the main page, if at all.

    Also still getting the Undetectable. Please enable 'shell_exec' function in PHP first. The issue seems to happen from this check with class-system-dashboard-admin.php 1265:

    /*If enabled, check if shell_exec() actually have execution power*/
    $returnVal = shell_exec('pwd');
    

    $returnVal is getting a NULL in my configuration, most probably as pwd isn’t a command available under Windows. Perhaps test with cd instead as it’s available in both systems.

    But down in 1388 noticed another linux command:

    $os = shell_exec( 'lsb_release -a' );

    So seems this isn’t going to work for a Windows environment. Perhaps add a check to gracefully inform of this in an upcoming version.

    Ah, one last thing: no, the WAMP test isn’t on a multisite. Just a normal WP+WC installation.

    Plugin Author Bowo

    (@qriouslad)

    @alx359 thanks for further analyzing this. Not sure if I want to try and support Windows environment, either local or on the cloud. Seems like a very minor percentage of WordPress sites are on that. May I know why you still prefer WAMP over something like LocalWP or Laragon?

    Thread Starter alx359

    (@alx359)

    Well, first and foremost I’m a Windows guy and not very comfortable with Linux yet. My local env is Windows anyway so WAMP was a natural choice to make at the time. WAMP isn’t a niche of interest I suppose, but IIS perhaps still is, so maybe you’d reconsider supporting the Windows env in an upcoming version. Cheers.

    Plugin Author Bowo

    (@qriouslad)

    @alx359 not likely, but I’ll keep this in mind if there are more Windows user using System Dashboard. Cheers.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Issues WAMP, PHP8.x’ is closed to new replies.