URGENT! Problems updating wordpress 4.8.1

Posted in: Newspaper
Post count: 63

Hi.

After updating wordpress my web is not going well. All blocks show me error .. like this:

Wp booster error:
Td_api_base :: mark_used_on_page: a component with the ID: tdc_state is not set.
/furanet/sites/mywebsite.com/web/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_api.php

Wp booster error:
Missing parameter: ‘file’
/furanet/sites/dev.mywebsite.com/web/htdocs/wp-content/themes/Newspaper/includes/wp_booster/td_autoload_classes.php
Fatal error: Class ‘tdc_state’ not found in /furanet/sites/dev.mywebsite.com/web/htdocs/wp-content/themes/Newspaper/includes/shortcodes/td_block_text_with_title.php on line 53

Post count: 20688

Hi,

First step would be to deactivate all plugins as a test, except the plugins provided with the theme (use the latest versions). Check any code you might have entered in the theme panel, or added to the theme files directly.
If you use a child theme, switch to the main theme and check the results.
As a last resort you can reinstall the theme by FTP
https://forum.tagdiv.com/install-via-ftp/

Thanks

Post count: 30

I’m having the same issues and I’ve deactivated all of my plugins. I am on multisite.

This is definitely urgent as all of our sites are down. =/

Post count: 30

Ok, so I have found the solution…

The functions.php file in the new Newspaper 6.3 is different than the one that was in 6.0

To resolve this issue, go to themes – editor in your dashboard, then replace the following code – making sure NOT to remove any other code. If you remove other code, you may lose custom functionalities that you’ve set in this functions file. Here’s the code:

<?php
/* ----------------------------------------------------------------------------
Newspaper 6 Child theme - Please do not use this child theme with older versions of Newspaper Theme

What can be overwritten via the child theme:
- everything from /parts folder
- all the loops (loop.php loop-single-1.php) etc

- the rest of the theme has to be modified via the theme api:
https://forum.tagdiv.com/the-theme-api/

*/

/* ----------------------------------------------------------------------------
add the parent style + style.css from this folder
*/
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 1000);
function theme_enqueue_styles() {
wp_enqueue_style('td-theme', get_template_directory_uri() . '/style.css', '', '6.1c', 'all' );
wp_enqueue_style('td-theme-child', get_stylesheet_directory_uri() . '/style.css', array('td-theme'), '6.1c', 'all' );

}

With this:
<?php
/* ----------------------------------------------------------------------------
Newspaper V6.3+ Child theme - Please do not use this child theme with older versions of Newspaper Theme

What can be overwritten via the child theme:
- everything from /parts folder
- all the loops (loop.php loop-single-1.php) etc
- please read the child theme documentation: https://forum.tagdiv.com/the-child-theme-support-tutorial/

- the rest of the theme has to be modified via the theme api:
https://forum.tagdiv.com/the-theme-api/

*/

/* ----------------------------------------------------------------------------
add the parent style + style.css from this folder
*/
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 1001);
function theme_enqueue_styles() {
wp_enqueue_style('td-theme', get_template_directory_uri() . '/style.css', '', TD_THEME_VERSION, 'all' );
wp_enqueue_style('td-theme-child', get_stylesheet_directory_uri() . '/style.css', array('td-theme'), TD_THEME_VERSION . 'c', 'all' );

}

This worked for me. Please update and let us know if it works for you.

Post count: 30

Ok, you know what… now I’m having other issues – I can’t see my post content. So I’m server rewinding until TagDiv gets this issue worked out.

Post count: 92

Soundstrat, are you still using Newspaper 6.3? My site updated to WP 4.8.1 automatically and have not had any conflict with Newspaper 8.0. Just wondering if you updated to NP 8+ if that would help (?).

Or has anyone noticed this issue with WP 4.8.1. and the latest NP 8 update from a couple days ago?

Cheers 🙂

Post count: 30

No, turns out I just hadn’t updated my child theme in a while.

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.