PHP Warning: date() expects parameter 2 to be int

Posted in: Newspaper
Post count: 15

Hi,

I was going through my ‘error logs’ and saw lots of error prolly caused by the td-composer plugin. Below are some of the latest error message registered on my ‘apache.error.log’.


AH01071: Got error 'PHP message: PHP Warning: date() expects parameter 2 to be int, string given in /wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php on line 320

PHP message: PHP Warning: date() expects parameter 2 to be int, string given in /wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php on line 670

PHP message: PHP Warning: date() expects parameter 2 to be int, string given in /wp-content/plugins/td-composer/legacy/common/wp_booster/td_module.php on line 175

referer: https://www.mywebsite.com/2019/07/30/113144/

Post count: 35449

Hello,

I’ve checked those file and there are two parameters set for date()
-> http://prntscr.com/p5kd0d
-> http://prntscr.com/p5kdcs
-> http://prntscr.com/p5kccx

Please make sure that you have the last version of the theme, Newspaper v9.8 and you do not have a plugin conflict.

Thank you!

Post count: 15

Hi,

Sorry about the delayed reply.

Yes I am using the latest version of the theme, and still getting error.

What to do now?

Post count: 35449

Hello,

Did you made some changes in theme core? also you can check the theme requirements to make sure that are set as in our guide from here – https://forum.tagdiv.com/requirements-for-newspaper/

Also this can be a plugin conflict, please deactivate ALL plugins except tagDiv Composer, also if you are using child theme or cache plugin, deactivate them, clear all cache and try again.

If there is still a problem, you can send us an email at contact@tagdiv.com and provide admin login, as well as cPanel or FTP if possible. We will take a look. Include a link to this topic in the email.

Thank you!

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