Hello,
I’ve uploaded the newest Newsmag theme (version 4.9.6) and overwritten the plugins we had using the ones that come in the zip file.
I’ve also uploaded the child theme (currently active).
Unfortunately none of them (main or child theme) seem to work in my site now.
The URL is the following (but first you’ll need to change your host file so farevela.net points to the IP: 31.47.77.24):
https://farevela.net/
The back office works but the front office shows the following error message:
Fatal error: Uncaught Error: Class ‘td_util’ not found in /srv/www/farevela.net/www/cms/wp-content/themes/Newsmag/functions.php:52 Stack trace: #0 /srv/www/farevela.net/www/cms/wp-includes/class-wp-hook.php(287): {closure}(false, Object(WP_Query)) #1 /srv/www/farevela.net/www/cms/wp-includes/plugin.php(212): WP_Hook->apply_filters(false, Array) #2 /srv/www/farevela.net/www/cms/wp-includes/class-wp.php(658): apply_filters(‘pre_handle_404’, false, Object(WP_Query)) #3 /srv/www/farevela.net/www/cms/wp-includes/class-wp.php(748): WP->handle_404() #4 /srv/www/farevela.net/www/cms/wp-includes/functions.php(1291): WP->main(”) #5 /srv/www/farevela.net/www/cms/wp-blog-header.php(16): wp() #6 /srv/www/farevela.net/www/index.php(19): require(‘/srv/www/fareve…’) #7 {main} thrown in /srv/www/farevela.net/www/cms/wp-content/themes/Newsmag/functions.php on line 52
There has been a critical error on this website.
Lines 47 to 58 of functions.php are these:
add_filter( ‘pre_handle_404’, function($param1, $param2) {
$post_id = url_to_postid(“http://”.$_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’]);
if (!empty($post_id)) {
$td_post_theme_settings = td_util::get_post_meta_array( $post_id, ‘td_post_theme_settings’ );
if ( is_array( $td_post_theme_settings ) && array_key_exists( ‘smart_list_template’, $td_post_theme_settings ) ) {
return true;
}
}
return $param1;
}, 10, 2);
Any advice welcome!
Thanks in advance.
Jose
UPDATE:
Site is back after I installed 2 missing plugins using the theme wizard.
My only issue now is that the posts thumbnails are missing and all I get is a default PNG thumb.
The photos inside my posts are OK but the thumbs used for instance for Related Articles are missing.
Their code is like this:
![]()
What might be happening?
TIA!
Hi,
After the theme update, you must update the theme plugins too, this can be done from Newsmag > Welcome or Newsmag > plugins. Most important is tagDiv Composer plugin.
Also now the screen provided is no longer available and the website where the image was store is not updated.
Some times, there can be some jQuery problems. Please provide a link to the website with that problem to can make some investigations.
Thank yo for your understanding!
You were right.
The site came back to life after I updated tagDiv Composer plugin following the steps you mentioned.
You can see a screen capture of my current issue (Thumbs from Posts are missing) here: https://tinyurl.com/yxffc6jy
My website URL is: https://farevela.net/
Important:
Since I haven’t changed my DNS yet, you’ll need to edit your host file so farevela.net points to the IP: 31.47.77.24, like this:
31.47.77.24 farevela.net
31.47.77.24 http://www.farevela.net
Thanks in advance!
Jose
Hi,
As I can see is like the the posts do not have assigned featured images. Please check to make sure that those are still assigned. Also is possible that the file path to the featured images to be different now (usually this is from extra plugins), please try to disable all non theme plugins and resave the permalinks.
If the problem is still persisting, then another solution is to restore a backup for database.
Thank you!
ok, I’m trying changing the Permalinks but no luck so far.
Regarding the lack of Feat. Image: yes, many articles (Posts) don’t have and I set it up so the web grabs the first photo in the Post as Feat. Image… so I’m thinking that this could be the cause of my issue.
I mean, could it be that after the upgrade (of theme and plugins) this feature isn’t correctly set up anymore?
In other words: how would you advise me to set it up so, in case of no Feat Image, the site uses the first available picture in the Post?
Thanks again for all your help !!!
Regarding the Feature Image:
I’m running the site now under Troubleshooting Mode.
I’m using NewsMag Theme and the only active plugin is tagDiv Composer.
Following your advice I’m trying to manually add a Feature Image to a couple of Posts (from different categories just to see how the theme displays those images on the Homepage)… but the image doesn’t get saved into the Post.
?
This is how my Post looks after I select this photo (https://farevela.net/cms/wp-content/uploads/2021/01/m4109_crop169014_2000x2000_proportional_1611892935C95C.jpg) as the Feat Image:
https://tinyurl.com/y3ny429q
As you can see it just doesn’t get saved into the Post.
I tried with other article with the same result.
What can be happening?
Cheers.
I just created this short video explaining the current situation:
https://www.loom.com/share/630c3394b64d46cfac8a1c5e4e40e9af
In short:
If I disable NewsMag > Post Settings > Feature Image Placeholder , than I’m able to manually add a SOME IMAGES as Feat Image in the Posts.
For some reason, not all the images are displayed as Feat Image … this is really odd to me.
Any advice will be much welcome !!!
Hi,
I’m not 100% sure, but it is possible to be from featured image caption, please make a test and delete the caption for a featured image that is not set and see if this is apply. Is possible that this to be the case why the featured images are not displaying, this was a case in the past.
Also the “Featured image placeholder” will load only a placeholder image for the featured image, will not display the first image from post as featured image. Our theme do not have this option.
Let me know the results with caption.
Thank you!
wow, you did find something… it’s not fully fixed but you surely found a clue.
Look into this screen capture:
https://tinyurl.com/yx8raht9
The Post that I’ve marked with the orange squares had a first image in the post that included this caption:
30/01/21 – Auckland (NZL)
36th America’s Cup presented by Prada
PRADA Cup 2021 – Semi Final Day 2
Luna Rossa Prada Pirelli Team
I deleted the caption and then this happened: the “farevela logo” showed up.
I set this in:
Newsmag – Theme panel > Block Settings > Thumb Placeholder
So, now, what would you do?
1. How can I fix this “caption issue”?
2. Why do you think the Feat Image doesn’t get saved in the Post?
3. And what plugin would you recommend to push a Feat Image using the first image in the Post automatically (when no Feat Image is selected)?
Thanks again for all your help.
Hi,
If I remember correctly, there should be no problems with the captions on featured image on Newsmag v4.9.6
Please make a test, disable and deleted tagDiv Composer, then reinstall it from Newsmag > plugins, clear all cache and check to see if the problem with caption still persist.
Before Newsmag v4.9.6 there were some problems with the images that had caption, and those couldn’t be set as featured images, as result the Featured Image didn’t get saved in the post.
Unfortunately I do not know what plugin to recommend fore featured image, our theme was made different, to can display a different image as thumb, that is way you have the option for add a featured image.
If you want, you can teste some of those plugins, for example here are the most recommended https://www.wpbeginner.com/plugins/14-best-featured-images-plugin-and-tools-for-wordpress/
Hope this will help you!
Update:
I just noticed that now the Feature Image in my posts doesn’t get loaded.
Take a look to this screen shot:
https://tinyurl.com/y5edxo66
The spinning wheel never stops spinning.
?
It’s been trying load for more than 5 minutes now in 3 different posts with no success.
For your information:
Newsmag > System Status shows no warning messages, so everything seems fine.
What do you suggest?
Downgrading to Newsmag 4.9.5?
Re-installing Newsmag from scratch?
Would you like to take it a look? I’m happy to give you Admin access (it’s a testing site right now).
New update:
I realized that we do have some Featured Images and they are displayed as Thumbnails… but only if the photos don’t have have captions.
New (simpler) scenario:
I’m now testing with NewsMag 4.9.6 (parent theme instead of my child theme).
I’ve deactivated all the plugins except tagDiv Composer (and tagDiv Social Counter
because at NewsMag > Welcome it warned me that I needed this one too).
I’ve reinstalled WordPress 5.6.1 just to make sure I’m not having any issue with WP.
Then I opened this Post:
It had a Feature Image:
https://tinyurl.com/y38ucb22
… but since it had a Caption text, it didn’t get displayed in our Home:
https://tinyurl.com/y66dok7o
So I removed the Caption (but kept the Title and Alt text because we need to be able to search for the images in the future).
I was able to save the Post but this is how it’s displayed now on the Home:
https://tinyurl.com/y6lus843
When I open my code I see that the SRC is empty, look:
The image URL is here and it does work:
https://farevela.net/cms/wp-content/uploads/2021/01/Marina-Cala-dei-Sardi-1.jpg
Note: I’m not using any cache plugin at the moment and I clean my browser cache every time.
What might be happening?
Thanks a lot for all your help.
Sorry but I forgot to paste the Post URL that I was testing.
Here you have it:
https://farevela.net/2021/01/21/nss-yachting-prima-azienda-europea-per-cat-da-crociera-venduti/
Hi,
This problem is quite strange, I think that it will be batter if we can take a look, for this, please make a full backup and contact as at contact@tagdiv.com provide wp-admin and cPanel and include the link of this topic in email. We’ll take a look to see what can be the problem.
Thank you for your understanding and sorry for the inconvenience!
I’ll do that in a minute.
Just to let you know, yesterday night I ran a full thumbnail Regeneration using Regenerate Thumbnails plugin (by Alex Mills) which worked fine for me in the past.
It took almost 10 hours and finished with quite some error messages.
See this image:
https://tinyurl.com/y3d52zsv
Unfortunately the Homepage and many interior pages are still missing their thumbnail.
I kindly appreciate your help.
You’ll get the email in a minute.
Hi,
According to the regeneration log it seems that some of your images are no longer in media. Did you use a program or something to set the images in subfolders or something like that?
Also all those images were on your media or you use other platform for images and you only use in WordPress the links to those images?
Usually those kind of problems appear when you migrate the website. But in your case it may be a problem because of the caption, but I’m not sure, we’ll check your website and let you know more.
Thank you!
Hi Calin,
Thanks for taking a look into our system.
I think I forgot to mention that the WP is installed in:
/cms/wp-admin
Regarding the missing media files:
This was my process:
1. I migrate the original content from IP 64.207.177.238 to my new server (IP: 31.47.77.24). The content by then was a full sync so both servers had identical files and structure.
2. Then I reviewed the site and everything was ok, so I decided to update the following:
2.1. PHP update from 5.6 to 7.4
2.2. WP update from current to latest 5.6.1
2.3. NewsMag Theme from current latest
It was just then when I realized the site had lost ALL the thumbnails, so I decided to contact you.
I tried regenerating the thumbnails using Regenerate Thumbnails plugin (by Alex Mills) which worked fine for me in the past.
I think I didn’t miss anything.
IMPORTANT:
My client is in a hurry so I’ve decided to do the following:
1. Erase everything and do a full sync / migration again
2. Review the new server
3. Change DNS so my client can start using the new server
4. Create a stage site (a copy of the site for testing) in the new server so we can update the website (WP, Theme and plugins)
I’ll contact you when the stage site is ready so you can help me with the Thumbs / Captions issue if it appears again.
Kindest regards,
Jose