Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating »

PHP 7 compatibility


  #1  
Old Nov 15, 2016, 09:07 AM
jlbo
 
2 posts · Nov 2016
PHP 7 compatibility

Hello,

Is Atahualpa 3.7.24 compatible with PHP 7 ?
If no, is there a plan for a new version that would be PHP 7 compatible ?

Thanks,
  #2  
Old Nov 15, 2016, 10:32 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
As far as I am aware, it is compatible
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Nov 20, 2016, 02:25 AM
jlbo
 
2 posts · Nov 2016
Hello,

Thanks for your message.
I have the followings errors reported by a PHP code checker.

wp-content/themes/atahualpa/functions/bfa_m_find_in_dir.php
-------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------
29 | ERROR | Function ereg() is deprecated since PHP 5.3 and removed since PHP 7.0; use preg_match instead
29 | ERROR | Extension 'ereg' is deprecated since PHP 5.3 and removed since PHP 7.0 - use pcre instead.
52 | ERROR | Function eregi() is deprecated since PHP 5.3 and removed since PHP 7.0; use preg_match instead
52 | ERROR | Extension 'ereg' is deprecated since PHP 5.3 and removed since PHP 7.0 - use pcre instead.
-------------------------------------------------------------------------------------------------------------

and

themes/atahualpa/functions/bfa_ata_admin.php
--------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
368 | ERROR | Function eregi() is deprecated since PHP 5.3 and removed since PHP 7.0; use preg_match instead
368 | ERROR | Extension 'ereg' is deprecated since PHP 5.3 and removed since PHP 7.0 - use pcre instead.
--------------------------------------------------------------------------------------------------------------

also some warnings:

wp-content/themes/atahualpa/functions/JSON.php
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------
133 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
783 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
797 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
----------------------------------------------------------------------------------------------

Do you think this has to be fixed in order to have atahualpa theme PHP 7 compatible ?

Thanks,
  #4  
Old Nov 20, 2016, 01:58 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
!) You should find another PHP 7 compatibility checker. The 'errors' it found in bfa_m_find_in_dir.php and bfa_ata_admin.php happen to be comment lines, so the checker does not recognize comments and analyses them and throws an error if it finds something in a comment - it should ignore the entire line!

2) The warning are valid and can be dealt with by removing the file 'JSON.php' from the 'atahualpa/functions' folder and editing 'functions.php and deleting lines 96-101 which are:
HTML Code:
// Since 3.5.2: JSON for PHP 4 & 5.1:
if (!function_exists('json_decode')) {
	include_once (get_template_directory() . '/functions/JSON.php');
	function json_encode($data) { $json = new Services_JSON(); return( $json->encode($data) ); }
	function json_decode($data) { $json = new Services_JSON(); return( $json->decode($data) ); }
}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
php version

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Atahualpa compatibility with Wordpress 4.6 drzeius New Versions, & Updating 3 Oct 5, 2016 04:43 PM
datafeedr compatibility bigliettaio Plugins & Atahualpa 2 Oct 9, 2014 03:50 AM
Compatibility with Simplviewer rickpm Atahualpa 3 Wordpress theme 5 Jun 16, 2011 02:21 PM
Compatibility with wordpress MU quixysfrance New Versions, & Updating 4 Aug 3, 2010 06:16 AM


All times are GMT -6. The time now is 01:25 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.