Jump to content

Recommended Posts

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

Share this post


Link to post
Share on other sites

Changing the codebase to deal with php7 is next on the to-do list.

Need help with that please.  Coding/Testing etc.


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites

@@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

Get the latest Responsive osCommerce CE (community edition) here

It's very easy to over complicate what are simple things in life

Share this post


Link to post
Share on other sites

@@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.

Edited by Dan Cole

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

Thanks @@PiLLaO. @@Lioelx if we put that into the php 7 changes are you in a position to test it?


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
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?


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites
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

Edited by seogle

Share this post


Link to post
Share on other sites
1 minute ago, seogle said:

no

We are focussed on oscommerce on this forum. You would be better to ask your question on stackoverflow


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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!


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

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 :smile:


Getting the Phoenix off the ground

Share this post


Link to post
Share on other sites

@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

Share this post


Link to post
Share on other sites
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)

 

:biggrin: Thanks, working 100% no errors


Getting the Phoenix off the ground

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×