• Resolved ulim

    (@ulim)


    The import is stuck at “Done preparing Blogs”. max_execution_time is set to 300.

    It looks like there is a problem importing WPForo, because when I enable WP_DEBUG, I get this message:

    Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in /var/www/html/wp-content/plugins/wpforo/wpf-includes/functions.php:843 Stack trace: #0 /var/www/html/wp-content/plugins/wpforo/wpf-includes/functions.php(843): fclose() #1 /var/www/html/wp-content/plugins/wpforo/wpf-includes/functions.php(1171): wpforo_write_file() #2 /var/www/html/wp-content/plugins/wpforo/wpforo.php(589): get_wpf_option() #3 /var/www/html/wp-content/plugins/wpforo/wpforo.php(139): wpForo->init_options() #4 /var/www/html/wp-content/plugins/wpforo/wpforo.php(112): wpForo->__construct() #5 /var/www/html/wp-content/plugins/wpforo/wpforo.php(1156): wpForo::instance() #6 /var/www/html/wp-content/plugins/wpforo/wpforo.php(1161): WPF() #7 /var/www/html/wp-settings.php(409): include_once('...') #8 /var/www/html/wp-config.php(94): require_once('...') #9 /var/www/html/wp-load.php(50): require_once('...') #10 /var/www/html/wp-blog-header.php(13): require_once('...') #11 /var/www/html/index.php(17): require('...') #12 {main} thrown in /var/www/html/wp-content/plugins/wpforo/wpf-includes/functions.php on line 843
    
    Notice: is_embed wurde fehlerhaft aufgerufen. Bedingte Abfragen (Conditional Tags) funktionieren nicht, wenn die Beitrags-Abfrage (query_posts) noch nicht durchgeführt wurde. Sie geben dann immer 'false' zurück. Weitere Informationen: Debugging in WordPress (engl.) (Diese Meldung wurde in Version 3.1.0 hinzugefügt.) in /var/www/html/wp-includes/functions.php on line 5663
    
    Notice: is_search wurde fehlerhaft aufgerufen. Bedingte Abfragen (Conditional Tags) funktionieren nicht, wenn die Beitrags-Abfrage (query_posts) noch nicht durchgeführt wurde. Sie geben dann immer 'false' zurück. Weitere Informationen: Debugging in WordPress (engl.) (Diese Meldung wurde in Version 3.1.0 hinzugefügt.) in /var/www/html/wp-includes/functions.php on line 5663

    When I delete the WPForo plugin folder, then the import immediately finishes and tells me that it was successful. However, no images were imported, so the import process was incomplete.

    The same error appears when I install wpforo manually after the fact. PHP version is 8.0.10 on the source site and 8.0.11 on the destination.

    Many thanks in advance for any pointers,

    Ulrich

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ulim

    (@ulim)

    The problem appeared to be that the wp-content/uploads folder belonged to root, not apache. Once I fixed that I could import my site including wpforo.

    However, I did not create this folder and after installing WordPress I changed the owner to apache:apache on the entire filesystem tree. Could it be that this folder was created by the plugin during import? But how could it belong to root then?

    Plugin Author Yani

    (@yaniiliev)

    If the folder did not exist on the website but it existed in the backup, then the plugin did create it, yes.
    The plugin is running under the same user that your php is running as. This means that when files and folders are created by the plugin, they will have the same user and group as your PHP service.

    Thread Starter ulim

    (@ulim)

    Thanks for the information. I checked that php-fpm and httpd are runnign as user apache and imported the site into a pristine WordPress installation, which does not contain the uploads folder. After the import the uploads folder was there, but it has the correct permissions.

    So I don’t know what went wrong in my first attempt, but it does not appear to have anything to do with this plugin. Again, thanks for the information.

    Thread Starter ulim

    (@ulim)

    I must correct myself: could it be that the folder wp-content/uploads is created by the plugin? The folder is not present in a pristine WordPress installation, but after installing the plugin, it suddenly appeared.

    Plugin Author Yani

    (@yaniiliev)

    No, the plugin will not create the folder when it is activated.
    WordPress, however, can create it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WPForo kills Import Process – stuck at “Done preparing Blogs”’ is closed to new replies.