• hello
    We first updated our site to WordPress 5.6 and then ran into a black screen problem.
    We installed the enable-jquery-migrate-helper plugin.
    And we updated all our plugins.
    But the problem was not solved.
    We thought the problem might be with our site theme.
    Disable the previous theme and reload the theme(OUR THEME IS: Industrial – Factory Business WordPress Theme from https://themeforest.net/ )

    The black screen problem was fixed when you clicked on the site,
    But when entering our admin, we encounter this error:
    “Fatal error: Cannot redeclare wordpress_importer_init() (previously declared in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wordpress-importer/wordpress-importer.php:51) in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/anps_theme_plugin/importer/wordpress-importer.php on line 47 ”
    (https://lotosforming.com/wp-admin/ )
    we can connect with FTP to our site, after deleting this theme we access our WP admin! but we need to install this theme for our website correctly. But as soon as the theme is activated, access to the admin is lost.

    how can I fix this problem?
    please help us

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

Viewing 1 replies (of 1 total)
  • Hi! You have a premium theme, so, the question about the theme to its official support.
    If you see this error, it’s mean that both plugins (with names of folders: wordpress-importer and anps_theme_plugin) you are using are having the function with exactly the same name ‘wordpress_importer_init’.
    You can disable one of them and then contact both plugins supports and explain the problem. Developers suppose to use a unique prefix for their functions to avoid such collisions, and use of a prefix like ‘wordpress’ is definitely not a good decision.

Viewing 1 replies (of 1 total)

The topic ‘Cannot redeclare wordpress_importer_init()’ is closed to new replies.