• Resolved grupocreacion

    (@grupocreacion)


    Hi,

    I just upgraded to 3.0 and I get this error when generating the static files:

    [2023-07-18 21:43:47] Error: (1) Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /var/www/html/wp-content/plugins/simply-static/src/tasks/class-ss-fetch-urls-task.php:271
    Stack trace:
    #0 /var/www/html/wp-content/plugins/simply-static/src/tasks/class-ss-fetch-urls-task.php(271): explode('\n', Array)
    #1 /var/www/html/wp-content/plugins/simply-static/src/tasks/class-ss-fetch-urls-task.php(61): Simply_Static\Fetch_Urls_Task->find_excludable(Object(Simply_Static\Page))
    #2 /var/www/html/wp-content/plugins/simply-static/src/class-ss-archive-creation-job.php(142): Simply_Static\Fetch_Urls_Task->perform()
    #3 /var/www/html/wp-content/plugins/simply-static/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php(514): Simply_Static\Archive_Creation_Job->task('fetch_urls')
    #4 /var/www/html/wp-content/plugins/simply-static/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php(335): WP_Background_Process->handle()
    #5 /var/www/html/wp-includes/class-wp-hook.php(308): WP_Background_Process->maybe_handle('')
    #6 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #7 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #8 /var/www/html/wp-admin/admin-ajax.php(203): do_action('wp_ajax_nopriv_...')
    #9 {main}
      thrown in /var/www/html/wp-content/plugins/simply-static/src/tasks/class-ss-fetch-urls-task.php on line 271
    
Viewing 1 replies (of 1 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @grupocreacion,

    thanks for reaching out!

    It seems the migration wasn’t finished.

    There are two ways to fix that:

    1. Go to Simply Static -> Settings -> Utilities and click on “Migrate Settings”
    2. You can also clear the value in Simply Static -> Settings -> General -> Exclude (There is probably something in the text field like “[object object]” – remove it and everything works fine again.

    Cheers,

    Patrick

Viewing 1 replies (of 1 total)
  • The topic ‘stoped working after upgrade to 3.0’ is closed to new replies.