Hi.
I have been instructed to move a website from your Newsmag theme to Your Newspaper theme. I am attempting to test in in a local ddev environment prior to making the changes to the live site.
However I cannot get the theme to install correctly. The theme zip file upload and when I try to activate it or run the live preview I get the following message:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 4 passed in /var/www/html/wp-includes/class-wp-hook.php on line 287 and exactly 5 expected in /var/www/html/wp-content/plugins/td-composer/css-analyze/css-analyze.php:510 Stack trace: #0 /var/www/html/wp-includes/class-wp-hook.php(287): {closure}(NULL, 7427, 'tdb_template_ty...', true) #1 /var/www/html/wp-includes/plugin.php(206): WP_Hook->apply_filters(NULL, Array) #2 /var/www/html/wp-includes/meta.php(676): apply_filters('get_post_metada...', NULL, 7427, 'tdb_template_ty...', true) #3 /var/www/html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_first_install.php(201): metadata_exists('post', 7427, 'tdb_template_ty...') #4 /var/www/html/wp-includes/class-wp-hook.php(287): {closure}('') #5 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #6 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #7 /var/www/html/wp-settings.php(524): do_action('after_setup_the...') #8 /var/www/ in /var/www/html/wp-content/plugins/td-composer/css-analyze/css-analyze.php on line 510
I have also notice errors calling for files in the plugins/td-composer/legacy/Newspaper folder that were no installed during the theme installation but are present in the full theme zip I originally downloaded. Do these files need uploading separately from the theme.
Attempting to uninstall the existing Newsmag theme and its plugins first, before installing the Newspaper theme bricked the site and I had to reset my dev environment.
Any help gratefully appreciated. I am supposed to be live by Monday with this.
Thanks
Hello,
The fatal error is usually caused when you have an old version of WordPress.
Please update the WordPress to 5.7.1 and check to see if the problem is still persisting.
You are probably uploading the whole theme package. You have to upload only the theme zip file, not the whole package which contains other items
– https://help.market.envato.com/hc/en-us/articles/202821510-Theme-is-missing-the-style-css-stylesheet-error
Install via WordPress -> https://forum.tagdiv.com/install-via-wordpress/
Install via FTP -> https://forum.tagdiv.com/install-via-ftp/
Requirements for Newspaper => https://forum.tagdiv.com/requirements-for-newspaper/
Thank you!
Hi Anamaria.
Thank you for you initial reply. I have updated both wordpress (to 5.7.1) and the existing Newsmag theme (to 4.9.6). Still, once the theme has been uploaded, upon clicking activate I am presented with the following message:
Warning: require_once(legacy/Newspaper/functions.php): failed to open stream: No such file or directory in /var/www/html/wp-content/plugins/td-composer/td-composer.php on line 184
Fatal error: require_once(): Failed opening required ‘legacy/Newspaper/functions.php’ (include_path=’.:/usr/share/php’) in /var/www/html/wp-content/plugins/td-composer/td-composer.php on line 184
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Learn more about troubleshooting WordPress.
I am leaning towards it being a problem with the local ddev setup as /var/www/html/wp-content/plugins/td-composer/td-composer.php may be where the file would have been on the original webserver. Is there something special needed to work on your themes locally?
Thanks
Martin
Hi,
Usually, this error appears when the requirements aren’t set like in our guide, please make sure you have added the limit also in your wp-config.php file, in config is WP_MEMORY_LIMIT not PHP Memory Limit (there is a typo, sorry) – https://forum.tagdiv.com/requirements-for-newspaper/
please increase all lower requirements and follow all steps => https://www.screencast.com/t/3eF7oKMSOr2J, this problem is when you use plugins that in turn require wp memory limit (WPML, revolution slider) each, in turn, requires 256 MB wp memory.
The easiest way to solve it is to double the wp memory limit.
Also, you have to decide which of the two themes you want to use, delete all tagDiv plugins and reinstall them from plugins => https://www.screencast.com/t/R1nkl4vGs
Thank you!