Debug shown me a lot of errors with theme!

Posted in: Newspaper
Post count: 75

Error log below:

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 7

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 14

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 21

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 28

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 35

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 42

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 49

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 56

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 63

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 70

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 77

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 84

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 91

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 98

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 105

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 112

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 119

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 126

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 133

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 140

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 147

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 154

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 161

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 168

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 175

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 182

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 189

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 195

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 202

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 209

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 216

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 222

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 228

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 234

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 240

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php on line 246

Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/themes/Newspaper/functions.php on line 68

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/themes/Newspaper/includes/widgets/td_page_builder_widgets.php:7) in /var/www/html/wp-admin/includes/misc.php on line 1114

WTF wrong??? this is pure clean instalation on WP

Post count: 75

FYI, I use the latest version of WP from docker
https://hub.docker.com/_/wordpress/
WordPress v.4.9.4
PHP: 7.2.0

Problem exactly with latest version PHP 7.2.0 and upper
because in version 7.2.0+ function create_function() was deprecated.

My project WIP, but I think Support team has to fix it ASAP!
Because if you check https://wordpress.org/about/requirements/
You can find best server configuration:

PHP 7.2 or greater
MySQL 5.6 or greater OR MariaDB 10.0 or greater
Nginx or Apache with mod_rewrite module
HTTPS support

Post count: 9544

7.2 is ‘recommended’ by WP, but not ‘required.’

Most sites are still running 5.6x and some are now on 7.1x; many are testing 7.2, but a lot of WP stuff not compatible (e.g., I did 7.2 test, and one WooCommerce plugin for MailChimp won’t work without 7.2, but the PDF invoice plugin from Woo, won’t work with 7.2 … which I think they are working on …)

Try setting your PHP version to 7.1 vs 7.2 for now.

A new version of NP coming soon with updated TD Composer.

( I don’t work here. )

Also good to check the THEME compatibility info, not the WP compatibility info.

Post count: 75

@neotrope Yes, I know, but I’m Arch Linux user! I always use latest stable version!
I think it’s better way to keep code not hackable,

Just fix it on theme and td-social-counter plugin
using this solution =)
https://stackoverflow.com/questions/39666228/how-to-rewrite-an-example-without-the-use-of-create-function

If authors has interest, I can share it via GitHub =)

  • This reply was modified 8 years by reatlat.
Post count: 9544

Yes, i have been managing my own linux servers since 1996… php 5.6x is secure, as much as 7.2. 7.1 just patched this week. Still, if theme and plugins tested for 7.1 but not 7.2, then you will have errors until the theme and plugins are uodated. So, either use 7.1 or get errors. Up to you.

Theme is not adverised as compatible with 7.2.

Post count: 20688

PHP 7.2 support will be available in the pending theme update, last minute preparations are made at this moment. The update will be released as soon as everything is completed.

Post count: 1043

I tested the theme with php7.2 and it worked well but decided to revert to php7.1 for stability.

Post count: 75

@epickenyan theme works well :joy: try to

define( 'WP_DEBUG', true );

https://codex.wordpress.org/WP_DEBUG
And you will see a Cristmas Tree of Shit =)

Post count: 9544

Yep. Not ready for 7.2 as noted. Use 7.1 until new version released… real soon now, supposedly.

Post count: 1043

@reatlat I changed hosts recently and the previous had php7.2 and the current one has yet to update to 7.2. But the recent theme update supports php 7.2.

Post count: 151

@reatlat , can you share your code please? I face the same issues and I would love to have the create_function rewritten automatically.

Post count: 75

@themesic not sure which code you mean ?
but I think it’s impossible, BCS Issue gone ?‍♂️

Post count: 151

@reatlat , I was talking about this answer: post-216029

I was called to manage a heavy customized version of Newspaper theme (unfortunately with no child theme), so Im in front of theme and td-social plugin’s warning for PHP 7.2 due to depracation of create_function, and at the same time, upgrading only the plugin is generating a notice in the frontend, calling me to update the whole theme.

Post count: 75

@themesic feel free reuse my simplified version of plugin for add more features to Newspaper theme https://gist.github.com/reatlat/417fa9f3bb3928462c782a3fe8891b45

Some description, I create child class for td_class and override functions
in plugin you will fins a simple functions only for Newspaper theme.

Post count: 151

Thanks for it, but once uploaded and activated, it returns:

2019/01/21 02:24:40 [error] 23735#0: *8518236 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'td_module_single_base' not found in /wp-content/plugins/alex-zappa-functions/alex-zappa-functions.php

Post count: 75

@themesic do you have activated Newspaper theme? can you pass the link website? Or contact me by email https://reatlat.net/contact/

Post count: 151

Contacting you via your form @reatlat – lots of thanks for your prompt responses.

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