Lioelx Posted January 24, 2017 Share Posted January 24, 2017 Hi, I've talked to Redsys and they're working on compatibility with php7. I will continue using php5.6 for now.Thank you very much No external links here, thank you Link to comment Share on other sites More sharing options...
cornishpirate Posted February 26, 2017 Author Share Posted February 26, 2017 Very interesting summary of PHP performance increase over the versions: https://www.phpclasses.org/blog/post/493-php-performance-evolution.html Real incentive to move to PHP 7 ! See also the potential for what may be PHP 8. Link to comment Share on other sites More sharing options...
burt Posted February 26, 2017 Share Posted February 26, 2017 Changing the codebase to deal with php7 is next on the to-do list. Need help with that please. Coding/Testing etc. Link to comment Share on other sites More sharing options...
♥14steve14 Posted February 26, 2017 Share Posted February 26, 2017 @@burt Would love to help Gary but on checking, my host has yet to add php7 as an option. Sorry. REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
Dan Cole Posted February 26, 2017 Share Posted February 26, 2017 @@burt I'm limited to Gary....my main hosting package doesn't have an option to change to php 7 and I don't think my test host does either but I'll check that and let you know. Dan PS: Checked test hosting account and it is not an option there either. Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
Lioelx Posted February 26, 2017 Share Posted February 26, 2017 Changing the codebase to deal with php7 is next on the to-do list. Need help with that please. Coding/Testing etc. Hi, @@burt, I have php7.1 installed on my vps. I volunteer to test. My shop is optimized with pack https://github.com/BrockleyJohn/Responsive-osCommerce/tree/php7_compatibility_01/ for php7 and work well. Regards No external links here, thank you Link to comment Share on other sites More sharing options...
cornishpirate Posted February 26, 2017 Author Share Posted February 26, 2017 PHP 7 is available with xampp. Link to comment Share on other sites More sharing options...
inra311 Posted February 28, 2017 Share Posted February 28, 2017 A general question: I am using the latest 'Master' version (gburton responsive master) and wonder in how far it is supposed to run under PHP 7 or not? at this time At least, I switched to PHP 7.0 for a short test and was pleased to see that the shop, and also all my various wordpress websites, were still running, no white screens or error messages. I then went back to 5.6 as I could not afford intensive testing with the live shop at the moment. What do you think, what to expect? And should I rather try 7.0 sooner or better wait a while? Link to comment Share on other sites More sharing options...
♥John W Posted February 28, 2017 Share Posted February 28, 2017 I've been running 7.07 on my local machine but i just updated it to 7.16 32 bit and then up to 7.16 64 bit. There are new vesions of xdebug for 7.0 and 7.1 both in 32 and 64 bit. One thing i did serveral years ago following the advice of Apachehaus and Apache Lounge (recomended on php.net for windows 64bit Apache) is to set up Apache on it's on and php on it's own, as well as mysql on it's own. Not as hard as you might think and the flexibility to change versions is really easy. You can keep diferent php versions and and I can switch pretty quickly. I aslo created a cmd file that i got from Xdebug so when I have an error I can click on the link and it opens up the file in netbeans on the error line. I can help with testing and maybe coding some, but i have the attention span of a housefly. I'm not really a dog. Link to comment Share on other sites More sharing options...
BrockleyJohn Posted February 28, 2017 Share Posted February 28, 2017 I'm happy to set up an account in my hosting for anyone who wants to do community testing - just let me know. Only snag is it's in UK Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
PiLLaO Posted March 15, 2017 Share Posted March 15, 2017 Hi, wath is the correct code fro work whit php7 error: Deprecated: Function mcrypt_encrypt() is deprecated in /httpdocs/includes/modules/payment/apiRedsys/apiRedsysFinal.php on line 70 function encrypt_3DES($message, $key){ // Se establece un IV por defecto $bytes = array(0,0,0,0,0,0,0,0); //byte [] IV = {0, 0, 0, 0, 0, 0, 0, 0} $iv = implode(array_map("chr", $bytes)); //PHP 4 >= 4.0.2 // Se cifra $ciphertext = mcrypt_encrypt(MCRYPT_3DES, $key, $message, MCRYPT_MODE_CBC, $iv); //PHP 4 >= 4.0.2 return $ciphertext; } Regards Hi Lioelx, I found this fix: https://github.com/eusonlito/redsys-TPV/commit/fe0304a8464317a57f75e75264f775e59731a698 Best regards :) Link to comment Share on other sites More sharing options...
BrockleyJohn Posted March 16, 2017 Share Posted March 16, 2017 Thanks @@PiLLaO. @@Lioelx if we put that into the php 7 changes are you in a position to test it? Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
Lioelx Posted March 21, 2017 Share Posted March 21, 2017 Hi, @@BrockleyJohn, At the moment I can not check anything, I have problems with my vps and my web a week ago. No external links here, thank you Link to comment Share on other sites More sharing options...
BrockleyJohn Posted March 21, 2017 Share Posted March 21, 2017 Hi, @@BrockleyJohn, At the moment I can not check anything, I have problems with my vps and my web a week ago. No worries - I realised it's not one of the bundled payment modules anyway so I misspoke - but maybe you can upload it to addons if the fix works. Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
♥altoid Posted May 10, 2017 Share Posted May 10, 2017 Changing the codebase to deal with php7 is next on the to-do list. Need help with that please. Coding/Testing etc. @@burt Gary, I lost track of where the php7 project is for Edge but in Github I managed to pull John's branch into my local branch (after dealing with a couple conflicts), the using the zip from that I ran a fresh install a "live" test shop using php 7.1. Hopefully what I have there is Edge up to the latest as of this date, then John's php7 work on top of that. Install went fine, no errors showing. A quick look around the test shop..no errors appeared but more looking needs done. FYI on that I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can. I remember what it was like when I first started with osC. It can be overwhelming. However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc. There are several good pros here on osCommerce. Look around, you'll figure out who they are. Link to comment Share on other sites More sharing options...
seogle Posted July 5, 2017 Share Posted July 5, 2017 I had a problem with the site after upgrading the server to php 7 to a higher version (my php admin) in plesk. The site that went wrong for me is seo-google. Now I'm afraid to make upgrades on another server. Could this cause me any problem? Link to comment Share on other sites More sharing options...
BrockleyJohn Posted July 5, 2017 Share Posted July 5, 2017 4 minutes ago, seogle said: I had a problem with the site after upgrading the server to php 7 to a higher version (my php admin) in plesk. The site that went wrong for me is seo-google. Now I'm afraid to make upgrades on another server. Could this cause me any problem? I think that is a woocommerce site. Do you also run an oscommerce site? Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
seogle Posted July 5, 2017 Share Posted July 5, 2017 12 minutes ago, BrockleyJohn said: I think that is a woocommerce site. Do you also run an oscommerce site? maybe i dont know I have no idea what it is Link to comment Share on other sites More sharing options...
BrockleyJohn Posted July 5, 2017 Share Posted July 5, 2017 1 minute ago, seogle said: no We are focussed on oscommerce on this forum. You would be better to ask your question on stackoverflow Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
seogle Posted July 5, 2017 Share Posted July 5, 2017 Just now, BrockleyJohn said: We are focussed on oscommerce on this forum. You would be better to ask your question on stackoverflow ok, I really thank you. I'll see if it's related to oscommerce Link to comment Share on other sites More sharing options...
BrockleyJohn Posted July 5, 2017 Share Posted July 5, 2017 2 minutes ago, seogle said: ok, I really thank you. I'll see if it's related to oscommerce oscommerce is another online shop software. If you can't get woocommerce working properly on php7 come back to us and we'll help you get oscommerce working instead! Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
Peper Posted June 7, 2018 Share Posted June 7, 2018 I'm stuck on this pdf catalogue function for testing upgrading to php7 pdf_catalogue.php from admin generating the store catalogues Notice: A non well formed numeric value encountered in C:\xampp\htdocs\edge\admin\pdf_catalogue.php on line 150 if($this->GetY()+$h>$this->PageBreakTrigger) is the bugger generating hundreds notices function CheckPageBreak($h) { //If the height h would cause an overflow, add a new page immediately if($this->GetY()+$h>$this->PageBreakTrigger) $this->AddPage($this->CurOrientation); } Any help on this one please Getting the Phoenix off the ground Link to comment Share on other sites More sharing options...
♥John W Posted June 7, 2018 Share Posted June 7, 2018 You can try casting the variables to an Interger. I'm not really a dog. Link to comment Share on other sites More sharing options...
Peper Posted June 7, 2018 Share Posted June 7, 2018 @John W @wHiTeHaT I have updated this 2 years ago -fpdf v1.81 (2015-12-20) Sir, elaborate pls - casting the variables to an Interger? i have no idea to do that Getting the Phoenix off the ground Link to comment Share on other sites More sharing options...
Peper Posted June 7, 2018 Share Posted June 7, 2018 1 hour ago, wHiTeHaT said: @Peper can be any $var in this case. But can try them all, my hunch however: see the (int) if($this->GetY()+(int)$h>$this->PageBreakTrigger) Thanks, working 100% no errors Getting the Phoenix off the ground Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.