Error with td-composer

Posted in: Newspaper
Post count: 18

Hello, A few minutes ago I had this error, which caused a total site crash, I had to uninstall td-composer and reinstall it.

AH01071: Got error ‘PHP message: PHP Warning: getimagesize(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/dib.com.ar/public_html/wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_logo.php on line 792PHP message: PHP Warning: getimagesize(https://dib.com.ar/wp-content/uploads/2020/01/logo.png): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/dib.com.ar/public_html/wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_logo.php on line 792PHP message: PHP Warning: getimagesize(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/dib.com.ar/public_html/wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_logo.php on line 792PHP message: PHP Warning: getimagesize(https://dib.com.ar/wp-content/uploads/2020/01/logo.png): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/dib.com.ar/public_html/wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_logo.php on line 792PHP message: PHP Warning: require_once(/var/www/dib.com.ar/public_html/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_block_ad_box.php): failed to open stream: No such file or directory in /var/www/dib.com.ar/public_html/wp-includes/template.php on line 730PHP message: PHP Fatal error: require_once(): Failed opening required ‘/var/www/dib.com.ar/public_html/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_block_ad_box.php’ (include_path=’.:/usr/share/php’) in /var/www/dib.com.ar/public_html/wp-includes/template.php on line 730′, referer: http://elfuertediario.com.ar/cuarentena-en-la-provincia-de-buenos-aires-en-que-fase-esta-cada-municipio/

It seemed strange to me, it is that the same thing happened to me in 3 different sites at the same time on the same server. In total I have 4 sites on this server, the error only happened on 3.

Post count: 18283

Hello !

For Warning: getimagesize, please make sure that all the settings are like in our requirements, please follow the guide carefully
https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.

Please enable the option in PHP.Ini as you can see here: https://stackoverflow.com/questions/37531149/php-getimagesize-not-working-on-external-links That allow url is 0 on your side.

Let us know the results !

Thank you !

Post count: 31

Hello. This is the second time I’ve had this same problem when adding a logo image in the footer with the tagdiv composer template builder, the logo that goes with the site title and tagline in the footer created a PHP error, and it’s happening with the Minty Pro footer I think it is. This is the second time I’ve had to contact my webhost support so they can enable allow_url_fopen on their end. It shows enabled in my Cpanel php.ini, but it actually isn’t enabled, even if I disable and re-enable it in php.ini.

It breaks the mobile version of my entire website and it will just rapidly keep reloading the web page on mobile, and images don’t load correctly, it jumps to the top when trying to scroll down.

The error is on line 792 of tdb_header_logo.php, but I get something weird on line 816 also, but it could just be the svg. I’m not sure if it’s normal.

Inbetween ” for $logo_image = ”; on line 816 I get: +/VFkz/6XTzORpC9jetuBMWM5iXmJ6byOFG2mdQNCA5P/bIhVPwkHFH0J6Ernuq6bII9xC2ho2Z1PGFn4pylVSzGdXT883kc04a/zsFwATSE1Dd6RwpXV8B8ms3wmpb3iGQdN4pkoQLPMVc3COlfvU+NuRd5OYcj1HsLat+sq7uGtI3JMCS/iXnK7+Al6FVkFxYwOrY5wz6GQuQs2zuqUtaArO7oKlBtVkhbtm+xYFYYcXQhnU6yBf1SgnMpqP+GUZXv4HTWv66jUwfh7sswY46R4t9MYeV1dPecbWvdWUyX51k/oYM+6uGsBb7Q+72xuvcwNmm2lPClC9XG2V49DgTBOOqGsdA423J0LW4vNqyHbiMfKXtTtMuYVCi2Hd26amDZYEdwrmZ0RezqSHVFxu2XIZzBfg75igepkfkgKe7aS+xWeOaMjhbCwtX9rmDLy/Tf7vgHgnQNxKnNE3xU2S1lWd3CP/e7wLqCJS+K6Up2osMHN3GPxzX0X8Z08lDnV+YDwNEfAZVCRX2dhM6vcJqOVAffMefbhLuq8qOM6bBwErOHplRROqXd2gpXQlzkE3VwoINdvQ0+r0obxcUgWLNYXgyOIur8F7Z8eft6u608AAAAAElFTkSuQmCC

Here is the error I get:
[19-Sep-2020 06:39:43 UTC] PHP Warning: getimagesize(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/theaegis/public_html/wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_logo.php on line 792
[19-Sep-2020 06:39:43 UTC] PHP Warning: getimagesize(https://www.theaegisalliance.com/wp-content/uploads/AEGIS-App-v3-200×200-1.jpg): failed to open stream: no suitable wrapper could be found in /home/theaegis/public_html/wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_logo.php on line 792

Post count: 31

My web host re enabled allow_url_fopen on their end, but I’m still getting mixed content warning in template builder for AEGIS-App-v3-200×200-1.jpg because it’s served over HTTP and not https… I deleted the image too. It just won’t go away from my site. I’ve completely removed it from the footer too. The mobile version for theaegisalliance.com is still completely broken also.

Post count: 31

I’ve tried uninstalling and reinstalling td composer, and td mobile theme, I also tried uninstalling and reinstalling the theme, but nothing works. Also, my site is currently running AMP for the mobile version, but I had redirects set up before to use the non-AMP mobile version because it’s capable of doing more such as the text to speech button. The non-AMP mobile version was working with no problems for quite a while.

Post count: 35449

Hi,

I think that this problem can be solve by adding an extra parameter in a theme file, the file path is wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_logo.php on line 792 set before getimagesize and ‘@’ like this -> https://i.imgur.com/VOWmTCI.png
Also make sure that allow_url_fopen = On;
-> https://chemicloud.com/kb/article/how-to-enable-or-disable-allow_url_fopen-in-cpanel/
-> https://www.a2hosting.com/kb/developer-corner/php/using-php.ini-directives/php-allow-url-fopen-directive

If there is still a problem, let us know, also if you want we can make the changes for you for getimagesize, just send us an email at contact@tagdiv.com and provide admin login. Include a link to this topic in the email.

Let me know the results!
Thank you!

Post count: 31

Adding @ to line 792 made the mixed content warning when editing templates go away, but the non-AMP mobile version is still broken.

I tried uninstalling and reinstalling the AMP plugin. Then uninistalled Jannah theme just to be safe, then updated permalinks with no changes. No luck. I disabled wp fastest cache and the premium plugin, refreshed permalinks again. (I’ve had no problems with wp fastest cache and Newspaper theme btw.)

I went into WP-Optimize and ran database optimizations, including cleaning some orphaned data that didn’t need to be in the database. Still no luck. Re-enabled wp fastest cache plugin, and I had been clearing cloudflare cache too during this time. Still no luck. I was also clearing browser cache.

I checked .htaccess file but didn’t see anything out of the ordinary unless I missed it.
I had noticed the mobile theme was broken not long after trying to add that logo image to MintySide Pro footer that caused the @ to disappear on line 792.

I emailed you guys Cpanel and WP-Admin logins.

Post count: 31

I had already checked last night and allow_url_fopen is on, I checked in Cpanel php.ini editor. I had also contacted web hosting support and they said it’s turned on.

Post count: 35449

Hi, we’ll take a look too at this problem, my colleagues reasonable via emails, will check the situation and will provide a fix.
Thank you for your understanding and sorry for the inconvenience!

Post count: 18

Today i had the same problem again. This is my php-fpm config

php_admin_value[memory_limit] = 256M
php_admin_value[max_execution_time] = 60
php_admin_value[max_input_vars] = 2000
php_admin_value[max_input_time] = 300
php_admin_value[post_max_size] = 10M
php_admin_value[upload_max_filesize] = 3M
php_admin_value[max_file_uploads] = 5
php_flag[allow_url_fopen] = on
php_admin_value[log_limit] = 4096

Post count: 35449

Hi Federico, make sure that these settings are reflecting in system status from theme and you do not have some untested plugins that provide conflicts.
If there is still a problem, please provide as much details you can and some screenshots.
Let me know the results!

Post count: 3

Hi, since yesterday I am having the same problems with the PHP not working and getimagesize and so on and me having to deactivate plugin “tagDiv Cloud Library 1.5” ; I added the @ but that doesn’t solve my problem; as this is a testsite on the same server as my actual site, this issue is taking my website down 🙁

This problem suddenly arose and I spend weeks working on my testsite without any issues at all.
As far as I can see I meet all requirements.
Thanks!

https://www.lotgenoten.fr/cms2

  • This reply was modified 5 years by wshades.
Post count: 2

Hello,

I’ve been having problems getting td-composer to load ever since the Sept. 1 WordPress update to 5.5. And it hasn’t gotten any better with the 5.5.1 update. Has Themeforest released an update to account for the javascript issues caused by the wordpress update?

Post count: 31

If this is for your mobile site, the constant reloading on mobile version is caused by the official google AMP plugin, you may have to disable the AMP plugin and your site will go back to normal. I think the theme developers are working on a fix. Non-AMP mobile version is capable of doing more too, there’s still a mobile version without AMP plugin active, and you can redirect AMP to the non-AMP mobile version if you have Yoast SEO plugin, the popular redirects plugin with 1 million installs hasn’t been updated in 4 months and will cache redirects making them difficult to get rid of, so any URL that has the letters “amp” together in it will redirect to a URL with letters missing and give a 404 error page.

Disable official AMP plugin, then:
Add this 301 Regex Redirect:
Regular Expression: (.*?)/?amp/$
New URL: https://yourdomain.com/$1

You can do the same for “amp/” “amp=/” and “?amp=/”

EDIT: The AMP version looks exactly the same as the non-AMP mobile version too, only that the non-AMP mobile is capable of doing more things.

Post count: 31

Jerikstl… I know this is probably an obvious answer, but have you tried clearing all caches? Caching plugin, browser cache, and CDN/Cloudflare cache.

You can also try manually installing the theme with a fresh download from ThemeForest. Then log into your web host > CPanel > File Manager > WP Content > Themes > Don’t rename the old theme folder, but compress it to use as a backup, upload fresh theme zip file into the themes folder, theme zip file only, delete old theme folder, then extract fresh theme zip file. You won’t lose any of your settings this way either.

EDIT: Delete Newspaper theme folder only, not child theme.

  • This reply was modified 5 years by AEGISAlliance. Reason: edit don't delete child theme
Post count: 35449

Hi,

If you are using WordPress v5.5 or 5.5.1 make sure that you are using Newspaper v10.3.6.1
If the problem persists, please try the below steps:
1. Disable tagDiv Composer -> https://i.imgur.com/uzBdRB9.png
2. delete tagDiv Composer -> https://i.imgur.com/xGGfYE7.png
3. Reinstall tagDiv Composer -> https://i.imgur.com/Ay0zJHn.png or -> https://i.imgur.com/ZMgV9at.png
4. Clear all cache from your website, host and browser ( for browser use force refresh Ctrl Shift R ).

A quick fix for this problem with getimagesize is to adding an extra parameter in theme file, the file path is wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_logo.php on line 792 set before getimagesize and ‘@’ like this -> https://i.imgur.com/VOWmTCI.png
This problem will be solved in the coming updates!

Make sure that all the settings are like in our requirements, please follow the guide carefully
https://forum.tagdiv.com/requirements-for-newspaper/

Let me know the results!
Thank you!

Post count: 3

hi Calin, no this fix isn’t working.

Post count: 35449

Hi wshades,

If you tried the above solution for getimagesize and the problem persists, please make a full backup and send us an email at contact@tagdiv.com and provide admin login and cPanel. We will take a look. Include a link to this topic in the email.

Thank you!

Post count: 3

Hi Calin, thanks!
I solved my problem by deactivating the plug-ins and activating them again, dropping my ‘headache’-theme-header-template in the bin and start creating another one.
I managed with some difficulties. I find it hard sometimes to save the work, the server sometimes hangs, but hey, I’m still standing.
If I’m getting in trouble again, I’ll be back.
Hugo

Post count: 35449

Hi wshades, I’m glad that you are able handle it, let me know the results!
Have a nice day!

Viewing 20 posts - 1 through 20 (of 20 total)
You must be logged in to reply to this topic.