Error in PHP code

Posted in: Newspaper
Post count: 79

Im getting an error in the php code :

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor in D:\www\eemskrant.nl\www\wp-content\themes\Newspaper\includes\wp_booster\wp-admin\external\wpalchemy\MetaBox.php on line 58

How to resolve that a cant get in WP-Admin

Post count: 23312

Hello eemskrant,

Until now we do not have any bad reports in this regards, sorry! Please ensure that you have fully installed your theme without any errors. To be sure, please try to do a clean install only through FTP because this is the surest method in this case. Also, I recommend you updating your theme to the latest version (7.0), according to our documentation here -> https://forum.tagdiv.com/how-to-update-the-theme-2/ Also, you can check this topic here -> https://forum.tagdiv.com/topic/how-i-manage-to-update-from-version-6-x-x-to-newspaper-7-0-without-a-problem/#post-111643 So, clear all your caches, purge all CDN files if you are using CDN and check the results.

Hope this helps and let us know how it goes!

Thanks.

Post count: 19

Hi there,

I also have the same problem
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor in /homepages/27/d479510947/htdocs/transportrail/wp-content/themes/Newspaper/includes/wp_booster/wp-admin/external/wpalchemy/MetaBox.php on line 58

Warning: Cannot modify header information – headers already sent by (output started at /homepages/27/d479510947/htdocs/transportrail/wp-content/themes/Newspaper/includes/wp_booster/wp-admin/external/wpalchemy/MetaBox.php:58) in /homepages/27/d479510947/htdocs/transportrail/wp-includes/pluggable.php on line 1171

I have done as suggested above and i still cannot log in to wp admin panel. Site works fine just cant get in.
Im not going to update my second site yet.

Post count: 23312

Hello The Learned Lizard,

I suppose that you are using the PHP7 version to our theme. Please notice that the theme is not yet compatible with php7. Some elements have become deprecated in the new version of PHP so if you want to use version 7 you can ignore these warnings but as the version 7 is not tested, we suggest reverting to version 6. Before switching to the PHP 6, please ensure that you have deactivated wp debug from wp-config.php core file like this -> http://screencast.com/t/iWr0W63LguQj and for more information about wp-config you should find in this documentation here -> https://codex.wordpress.org/Debugging_in_WordPress Please make sure that you have set them all the permissions for upload folder in your Cpanel/FTP.

Thank you!

Post count: 19

Hi Catalln,
That did the trick you were correct i was on PHP7. I dropped down and that issue is solved. However i still get one error

Function in /homepages/27/d479510947/htdocs/transportrail/wp-content/plugins/dpProEventCalendar/functions.php on line 1321

Im guessing though that i will need to contact the 3rd part plugin dev to look into this.

Many thanks
Dave.

Post count: 23312

Hello The Learned Lizard,

Unfortunately, as you can see, this error come from Pro Event Calendar which is not the tested plugin with our theme and we cannot provide support for untested plugins, sorry! This type of plugin can interfere with our theme and might cause a lot of unknown issues. Please try to contact the author’s plugin and tell the problem. He should be able to provide a more accurate response in this case. If you need to adjust the plugin to work well with our theme, please notice that this involves doing some customizations through code that involve custom work. If you are not aware which the steps in this regard ,pease consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!

Thank you for your understanding!

Post count: 4

Hello Catalin,

Regarding with Pro Event Calendar plugins, which is unfortunately
not been tested by newspaper theme, May i ask what kind of plugins
that is compatible with newspaper theme, Similar to Pro Event Calendar plugun? thanks

Post count: 23312

Hello nestyicetee,

Unfortunately, we do not have any recommendation in this regard, but please notice that you will have to try the free plugins with this functionality because as you can see here -> http://screencast.com/t/ZuVBEk0oQo it are many of this type.

Thaks for your understanding!

Post count: 4

Hi Catalin,

Thanks for your suggestion. I found one plugin, All In One Event Calendar. It works fine, but i noticed it always place in the bottom part of my homepage. I wonder if i can drag into middle part of my homepage. If you have suggestion, let me know.

Thanks

Post count: 23312

Hello nestyicetee,

Unfortunately, nor this plugin is not tested with our theme and we cannot offer you a technical response in this regard, sorry! Maybe, some of our clients use this plugin and could help you in this regard.

Thanks for your understanding!

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