I'm using opencart 2.0.3.1 at www.deccan-dental.com and i'm also using wordpress site on the same server with a different directory @ www.deccan-dental.com/newsite.
My problem is i'm getting 500 internal server error after installing a plugin in wordpress site and it is giving me the notice of PHP version update. I would like to ask you that If I update the PHP version from 5.3+ to latest then is there any chance to get my opencart site crashed? Please some one help answering this question. Thanks in advance
Your shop use custom theme and some custom extensions, so you should ask all developers regarding this. Does their extensions support latest php version...
Cheers
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
Can anyone suggest me how easily and safely update my PHP version to the latest without being damaged to my website
Thanks in advance
and OC v.2 + should work at least up to PHP v.7.1.x. Versions, as they come by default!
Ernie
---
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
How do you deal with mcrypt being deprecated? I know it has been replaced in the latest version with openssl_encrypt, but I have a store running 2.2.0.0 that has been moved to PHP 7.2.1 and it's having issues with this.
one should be able to select between different PHP Versions available. And if
not, one just has a poor Hoster.
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
If that is no change for you - while I cannot imagine why not, you can contact me to get the solution.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Right, but windows95 said they were running 2.2.0.0 on PHP 7.2.1 as well but with no issues. I was wondering if they had patched the mcrypt issue to make it work.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
<?php
final class Encryption {
private $cipher = 'aes-256-ctr';
private $digest = 'sha256';
private $key;
public function __construct($key) {
$this->key = $key;
}
public function encrypt($value) {
$key = openssl_digest($this->key, $this->digest, true);
$iv_length = openssl_cipher_iv_length($this->cipher);
$iv = openssl_random_pseudo_bytes($iv_length);
return base64_encode($iv . openssl_encrypt($value, $this->cipher, $key, OPENSSL_RAW_DATA, $iv));
}
public function decrypt($value) {
$key = openssl_digest($this->key, $this->digest, true);
$iv_length = openssl_cipher_iv_length($this->cipher);
$value = base64_decode($value);
$iv = substr($value, 0, $iv_length);
$value = substr($value, $iv_length);
return openssl_decrypt($value, $this->cipher, $key, OPENSSL_RAW_DATA, $iv);
}
}
Well, thanks a million for this piece of Code, it solved a potentially fundamental Problem,
since my 1.5.6.x was not able to pass the PHP 7.0.xx Mark, as it comes. But now, everything
changed, and the future looks bright again, encouraging me to a great extend!
It's like getting a late Christmas Gift !!!
Ernie
---
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Ernie
https://wiki.php.net/rfc/counting_non_countables
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Of course, I have also posted my solution about this sometime ago on the forum and on GitHub: viewtopic.php?f=198&t=204707&p=725370#p725077
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
At this point, I really wouldn't suggest to v1.5x releases for the latest release of PHP … I would rather suggest at least the use of v2.3.0.2 release of OC. Otherwise, OC v3.x releases.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 49 guests