Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
amazingpaleo
tagDiv Member

To see the issue, the post needs to be a new one that is not published yet.
If you need to, create a fake post to see the issue.

amazingpaleo
tagDiv Member

Hello, Calin,

I just sent you login credentials to fix the issue.

Let me know when you are able to look at it.

Shane

amazingpaleo
tagDiv Member

You can see in this video that when I choose to view the article post in “Preview” the template that it displays in is the wrong template. When I publish the article it looks fine.

https://www.loom.com/share/719906e7faa84bd390b5d8a474eb6909

Please advise how to fix this.

amazingpaleo
tagDiv Member

Can I give you guest access to my site so you can look at the issue and fix it? I do not have any caching plugins that would be causing this. The issue started right after I updated the theme.

Please advise. This is causing an issue with viewing the posts before they go live.

amazingpaleo
tagDiv Member

I need another solution. I can’t install WP Super Cache. WP Engine doesn’t allow that plugin.

amazingpaleo
tagDiv Member

OK.

What about the Author pages? How can I get them to display the new post type articles?

amazingpaleo
tagDiv Member

No CDN and I cleared cache with wpengine. I contacted them and here is the conversation we had. It looks like the code base is different but my stage environment is a copy of production.

WPENGINE:
I apologize for the confusion. Looking at vrfitness, it looks like it’s using td-social-counter. Since clearing the cache did not resolve the issue I ran a check to compare the differences between staging and live. It does look like there are multiple differences . One is related to the td social widget, it appears tha there is code in the widget that is blocking it. It says the following: > // register our widget
> add_action(‘widgets_init’, ‘td_load_widget’);
> function td_load_widget() {
> $td_block_widget = new td_block_widget( ‘td_block_social_counter’ );
> register_widget( $td_block_widget );
11d12
< add_action(‘widgets_init’, create_function(”, ‘return register_widget(“td_block_social_counter_widget”);’));

I would recommend reaching out to the plug-in developer with this information as it appears something within the plugin is actually blocking it. From reading the error, it appears that it’s related to registration of the widget.

Shane Hoalst
That is weird… It’s part of the theme. Why would it work in stag but not prod?
Read
Andy
4:10 pm
Because the file is different. In live the file /nas/content/staging/vrfitness/wp-content/plugins/td-social-counter/widget/td_block_social_counter_widget.php
states ” < //register our widget
< class td_block_social_counter_widget extends td_block_widget {
< var $td_block_id = ‘td_block_social_counter’; // change only the block id, the rest is autogenerated”

In staging it says: > // register our widget
> add_action(‘widgets_init’, ‘td_load_widget’);
> function td_load_widget() {
> $td_block_widget = new td_block_widget( ‘td_block_social_counter’ );
> register_widget( $td_block_widget );
11d12
< add_action(‘widgets_init’, create_function(”, ‘return register_widget(“td_block_social_counter_widget”);’));

4:12 pm
SO there are additional lines in staging that are allowing the widget to load. As these are code snippets, I wouldn’t be able to alter them. Likely you will need to reach out to a developer, or the theme developer to update the code within this file so that the site will load. As I’m not a developer I can’t say for sure what this code is meant for but due to the contents I believe this is what’s causing it to fail to work on live.

amazingpaleo
tagDiv Member

Yep, that was it! Thank you for finding that.

amazingpaleo
tagDiv Member

I also tried changing the header to another and then back but nothing changed.

amazingpaleo
tagDiv Member

Hi Simion,

I took out the custom CSS I had, cleared cache but it’s still there. There is no other custom code on the site.

Here is the site: https://www.vrfitnessinsider.com/

Thank you!

amazingpaleo
tagDiv Member

This is the area I am talking about.
https://www.screencast.com/t/6xUUyRQk4

I would like Newspaper to pick up my new template called new-search.php

Viewing 11 posts - 1 through 11 (of 11 total)