• Resolved gsc89

    (@gsc89)


    Version 2 seems fine but we update to v3 we get an issue where nothing is generated.

    When I look in the error logs I get this:

    [2023-07-26 09:38:37] qa.ERROR: error_log(/app/web/app/plugins/simply-static/debug.txt): Failed to open stream: Permission denied {"userId":1,"exception":"[object] (ErrorException(code: 0): error_log(/app/web/app/plugins/simply-static/debug.txt): Failed to open stream: Permission denied at /app/web/app/plugins/simply-static/src/class-ss-util.php:139)
    
    [stacktrace]
    
    #0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError()
    
    #1 /app/web/app/plugins/simply-static/src/class-ss-util.php(139): error_log()
    
    #2 /app/web/app/plugins/simply-static/src/admin/inc/class-ss-admin-settings.php(378): Simply_Static\\Util::debug_log()
    
    #3 /app/web/wp/wp-includes/rest-api/class-wp-rest-server.php(1181): Simply_Static\\Admin_Settings->cancel_export()
    
    #4 /app/web/wp/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request()
    
    #5 /app/web/wp/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch()
    
    #6 /app/web/wp/wp-includes/rest-api.php(410): WP_REST_Server->serve_request()
    
    #7 /app/web/wp/wp-includes/class-wp-hook.php(308): rest_api_loaded()
    
    #8 /app/web/wp/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    #9 /app/web/wp/wp-includes/plugin.php(565): WP_Hook->do_action()
    
    #10 /app/web/wp/wp-includes/class-wp.php(399): do_action_ref_array()
    
    #11 /app/web/wp/wp-includes/class-wp.php(780): WP->parse_request()
    
    #12 /app/web/wp/wp-includes/functions.php(1334): WP->main()
    
    #13 /app/web/wp/wp-blog-header.php(16): wp()
    
    #14 /app/web/index.php(6): require('...')
    
    #15 {main}
    
    "}

    Can anyone help with this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @gsc89,

    thanks for your report!

    I assume you haven’t used the debug log from Simply Static before, as your server doesn’t allow you to write/read that file (that’s what the error message is about).

    You can disable the logging Simply Static -> Settings -> Advanced -> Debugging Mode.

    You could also ask your server provider/hoster to allow writing to that particular file.

    It’s always good to have the ability to log errors, but entirely up to you!)

    Cheers,
    Patrick

    Thread Starter gsc89

    (@gsc89)

    Actually I was wrong.

    I disabled that debugging part in settings:

    [2023-07-27 15:40:39] uat.ERROR: explode(): Argument #2 ($string) must be of type string, array given {"userId":1,"exception":"[object] (TypeError(code: 0): explode(): Argument #2 ($string) must be of type string, array given at /app/web/app/plugins/simply-static/src/tasks/class-ss-fetch-urls-task.php:271)
    
    [stacktrace]
    
    #0 /app/web/app/plugins/simply-static/src/tasks/class-ss-fetch-urls-task.php(271): explode()
    
    #1 /app/web/app/plugins/simply-static/src/tasks/class-ss-fetch-urls-task.php(61): Simply_Static\\Fetch_Urls_Task->find_excludable()
    
    #2 /app/web/app/plugins/simply-static/src/class-ss-archive-creation-job.php(142): Simply_Static\\Fetch_Urls_Task->perform()
    
    #3 /app/web/app/plugins/simply-static/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php(514): Simply_Static\\Archive_Creation_Job->task()
    
    #4 /app/web/app/plugins/simply-static/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php(335): WP_Background_Process->handle()
    
    #5 /app/web/wp/wp-includes/class-wp-hook.php(308): WP_Background_Process->maybe_handle()
    
    #6 /app/web/wp/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    #7 /app/web/wp/wp-includes/plugin.php(517): WP_Hook->do_action()
    
    #8 /app/web/wp/wp-admin/admin-ajax.php(188): do_action()
    
    #9 {main}
    
    "}

    Still get this.

    As you can see this is off:
    https://prnt.sc/0F-d-WhgJa0g

    I see in the code now when I go to that file its the debug line and the debug function itself is checking the option and should return … but its not?

    I have not altered the filter ss_get_options either (multiple developers have worked on this as we made our own plugin to sync this off to S3 so worth checking but I can’t see anything hooking into those options so it “should” of returned as its off.)

    • This reply was modified 1 year, 8 months ago by gsc89.
    • This reply was modified 1 year, 8 months ago by gsc89.
    • This reply was modified 1 year, 8 months ago by gsc89.
    Plugin Support sr293

    (@sr293)

    Hello @gsc89. It seems the auto-migration process may have not finished during the plugin update. You can manually run this process by visiting the Simply Static > Settings > Utilities admin page and clicking the “Migrate Settings” button.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not working after updating to v3’ is closed to new replies.