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 :)
triowebdev
tagDiv Member

The problem doesn’t require a plugin. It happens when you embed the instagram url directly into the content editor.

triowebdev
tagDiv Member

Problem appears to be solved by changing this line in the theme:
/includes/wp_booster/td_wp_booster_functions.php
LINE 2115

$content_width is set to 640. Changing this to any other value or commenting out this line solves the problem. Not sure how this global variable is used by the theme.

Added this to the child theme functions.php file to solve the problem.


if (!isset($content_width)) {
$content_width = 650;
}

triowebdev
tagDiv Member

I could be wrong but I don’t think we started to have problems until February 2017. So I am not sure if there was anything in the last couple of updates that could be conflicting with our hosting environment in some strange way that could be causing the problem. However, the problem only occurs with the Newspaper theme.

triowebdev
tagDiv Member

Keeping track of tests on this forum thread in case anyone else encounters embed issues.

1) Tried downgrading the dev site from 7.0 to 5.6 and 5.5. Problem still exists after downgrade.

2) Upon suggestion that the problem may go away if demo content is reinstalled, we reinstalled the demo content and settings on PHP 7.0 with no success. We then downgraded to 5.6 and 5.5 and reinstalled the demo content and settings and the problem still exists.

3) We have installed a fresh WordPress website with a clean install of Newspaper theme. Added posts with embeds and all embeds are currently displaying. This is expected as new posts on the live website also embed all social media posts correctly. We expect that the social media embeds may start to fail within the next day or two.

4) We still don’t know what may be causing this problem or if embedded posts or the_content are filtered via a filter or action or in any way that could cause this issue.

triowebdev
tagDiv Member

Hello,

I understand that you receive a lot of support requests and you probably skim read most postings, however, I have tried very hard to do my due diligence in troubleshooting this problem. I am sending the login credentials for the website.

1) As per my post on March 23 “However, if I create a new post and embed the same Instagram post, the Instagram post and not the URL may appear.” I would expect that your test would display the social media posts. Because if I use the same social media post in a new WordPress post, it displays.

2) You wrote on March 27 “The suggestion to disable the plugins was to double check that that plugins are not causing this, since the links seem to work and display properly on my end.“.

I had already wrote on March 23 “I have disabled all plugins.“. I had also disabled Visual Composer to test for a conflict there.

As you stated on March 27, Visual Composer has no effect on the post page, so your statement on March 24 “ Also please install the Visual composer plugin as it is an essential and required in the proper functionality of the theme” implies the problem might be related to Visual Composer. If that was not your intent, then your statement is completely irrelevant to the problem because as you stated, it has no effect on the post page.

Again, this is a dev version of the website for testing. We are using Visual Composer on the live website but we cannot easily isolate the problem with plugins activated.

3) You state on March 27 “After a search on the internet it seems that other people are having this issue with some of the embeds – https://wordpress.org/support/topic/youtube-embed-not-working-anymore-after-451-update/ and it could be a hosting issue.

However, I stated on March 23 “Switching to 2016 theme solves the problem instantly.

How is this a WordPress update issue or a hosting issue if the problem is solved by changing from the Newspaper theme to the 2016 theme? And then the problem re-occurs when switching back to the Newspaper theme? Also, did you read the thread YOU linked? It is for a near isolated incident with WordPress 4.5.1 that was resolved with WordPress 4.5.2. How was that supposed to be beneficial to my scenario considering embed work perfectly fine with the default theme activated?

So, let me restate.
Server software Apache/2.4.25 (Unix) OpenSSL/1.0.2g
PHP Version 7.0.17
post_max_size 50M
max_execution_time 600
max_input_vars 5000
WP version 4.7.3
WP multisite enabled No
WP Language es_ES
WP Memory Limit 512 MB/request
Theme Newspaper
Theme version 7.7.1
Theme database version 7.7.1
Visual Composer 5.1

All required plugins (Visual Composer) are currently active. NO other plugins are active. Three themes are installed. Newspaper, Newspaper Child, and 2016. Newspaper (not Newspaper Child) is the current active theme.

With this setup, some social media embed are not embedding.

Switching to 2016 theme and reloading the same page, all social media embed work properly.

Switching back to Newspaper theme, same social media embeds are not working again. Those same social media embeds will work properly if reposted in a new post.

This information combined with all of the other information provided above should clearly explain the problem. I have completely isolated the problem down to the Newspaper theme. It is possible that the Newspaper theme could have a conflict with the hosting environment, however, I have posted my environment information above and I believe that it meets or exceeds all recommendations. Like I also stated above, I am not receiving any errors or noticies alerting me to any problems.

If you have any questions or suggestions that have not already be answered or attempted, please let me know. I would like to get this resolved as soon as possible as it does impact our readership.

Thank you,

triowebdev
tagDiv Member

Here is the system status from the theme page:

Server software Apache/2.4.25 (Unix) OpenSSL/1.0.2g
PHP Version 7.0.17
post_max_size 50M
max_execution_time 600
max_input_vars 5000
WP version 4.7.3
WP multisite enabled No
WP Language es_ES
WP Memory Limit 512 MB/request
Theme version 7.7.1
Theme database version 7.7.1
Visual Composer 5.1

From what I can tell, my system meets all of the required specs and I am running the most recent versions of WordPress, Newspaper Theme, and Visual Composer.

All required plugins are installed and activated (Visual Composer). No other optional plugins are active.

Again, problem is instantly solved by changing to the 2016 theme and instantly resumes if I change back to the Newspaper theme.

It doesn’t appear to matter how I embed the social media post. If I use the embed shortcode or if I just drop in the URL as per the WordPress Embed codex.

This is kind of a big problem for us as the site relies heavily on social media posts.

If I had to guess, the Newspaper theme is running a filter or action on the embeds. I believe this is true based on what I have read in other posts in the forum. My guess is, something in that filter or action is timing out on some social media posts or is failing to recognize the formatting of some URLs and not others (less likely.)

So my questions are.

1) Does the Newspaper theme run a filter or action on embeds or in any way interact with embedded media?

2) If so, where is that code located in the theme?

3) Do you recognize that this is a theme issue and not a plugin / social media issue (since the problem only occurs with the theme activated)?

Thank you for your help.

triowebdev
tagDiv Member

As per your request (although I still do not know what benefit it provides) I have re-activated Visual Composer 5.1. I should also note that this problem existed prior to the latest update with version 4.10.

triowebdev
tagDiv Member

Hi Simion,

Your response is extremely frustrating because it show you did not spend the time to read what I have done so far to test this problem.

I have disabled all plugins to test this problem. It does not matter what plugins are activated or deactivated because the problem is the theme.

When the Newspaper theme is activated, the links do not work. The intermittent issue is only some links do not work. However, when I switch to the 2016 theme, the links instantly begin working. When I switch back to the Newspaper theme, the links no longer work. Clearly a theme issue.

Please explain how Visual Composer is essential and required for the proper functionality to display a single post. Because it isn’t AFAIK. It is important for displaying modules/blocks and very useful for pages, however, it is not used on posts AFAIK.

I should also note that I have read about WordPress embeds in depth and have tried all of their embed strategies and the problem still persists. I have also posted to Stack Exchange to get help but the problem is the theme, not WordPress.

Thank you

triowebdev
tagDiv Member

I turned off my child theme and loaded the Newspaper theme (most recent version Jan 17,2017 uploaded version) as the default theme.

I turned off all the plugins including visual composer. Cleared cache. No CDN. No custom code.

I am still having the problem of duplicate posts. I checked to make sure it was loading the same post and it wasn’t a duplicate post issue. It is loading the same post with the same timestamp and slug.

Not sure what else to check…

triowebdev
tagDiv Member

I should also note. When I click “Load More” a second time, the posts load in this order.

21, 22, 23, 24, 25, 26, 27, 28, 29, 30

There are no duplicates on the second load more. Same with the 3rd and 4th, no duplicates there. The duplicates only load on the first time I click “Load More”.

triowebdev
tagDiv Member

Easy enough. Thank you.

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