if I do have to upgrade to the ocart 2.x version, is there an easy tutorial that will walk me through the process? I do not want to have to reinstall from scratch, I have too much work in setting it all up already.
thanks!
Mike B
https://www.opencart.com/index.php?rout ... load_id=36
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
if I upgrade to ocart 2.x, will that support PHP 7.2? I guess I should upgrade anyway :-( but damn thing's working fine finally.. I hate to break things or have to re-build my site from scratch
but in most cases, just replace the system/library/encryption.php
File Code with the one shown below, to at least make v.1.5.6.4 / 1.5.6.5_rc
work quite well ...
![Cheesy :D](./images/smilies/cheesy.gif)
But Peku's Mod, listed/linked above, possibly does not work with PHP 7.2x !
Ernie
PS: Later OC versions even seem to have more problems, to make this work.
Code: Select all
<?php
final class Encryption {
public function encrypt($key, $value) {
// Remove the base64 encoding from our key
$encryption_key = base64_decode($value);
// Generate an initialization vector
$iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-gcm'));
// Encrypt the data using AES 256 encryption in GCM mode using our encryption key and initialization vector.
if (in_array('aes-256-gcm', openssl_get_cipher_methods())) {
$tag = base64_encode($iv);
$encrypted = openssl_encrypt($key, 'aes-256-gcm', $encryption_key, 0, $iv, $tag);
// The $iv is just as important as the key for decrypting, so save it with our encrypted data using a unique separator (::)
return base64_encode($encrypted . '::' . $iv);
}
}
public function decrypt($key, $value) {
if (in_array('aes-256-gcm', openssl_get_cipher_methods())) {
// Remove the base64 encoding from our key
$encryption_key = base64_decode($value);
// To decrypt, split the encrypted data from our IV - our unique separator used was "::"
list($encrypted_data, $iv) = explode('::', base64_decode($key), 2);
$tag = base64_decode($iv);
return openssl_decrypt($encrypted_data, 'aes-256-gcm', $encryption_key, 0, $iv, $tag);
}
}
}
?>
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.
so are you saying that later versions of ocart won't work easily with PHP 7.2? so like ocart 2.x and ocart 3.x? and that only 1.56 will work at all with PHP 7.2?
sorry for the newbie questions :-( but thank you very much for the help!
Mike B
since I don't use later OC-Versions.
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.
that it hurts, but that you don't know why, and where ...
![Cheesy :D](./images/smilies/cheesy.gif)
So, better get down to talk Facts & Figures, if you really expect
someone to find out. Your Site Error Log will tell you, what that
Error 500 means, and if you don't find it, ask your Hoster about.
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.
This is just been a real pain in the rump, I don't want to have to rebuild my site from scratch... getting some of the payment modules working properly was extremely painful and time consuming...
It does not appear there is a straight upgrade path to any newer versions of Ocart either... that is also frustrating ;-(
![Roll Eyes ::)](./images/smilies/rolleyes.gif)
But for a simple Dollar more, per month, you would have it ...
>> Starting at $4.95/mo - LPCP or cPanel (Available) <<
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.
i have the same problem now .
on front page it works but admin page PHP Eror 500
1- i update my PHP to 7.2 , 7.3 , 7.4 but also the front page gone . then back to PHP 5.6 as you did and then works . but i can not log in to admin panel
2- i used the codes but didnt work agin , then changed the vqmod newer but didnt work again .
what i have to do ? would you please help me about it ?
Error logs. However, it is suggested to upgrade Opencart to a higher versions - to at least v2.3.0.2 release - due to old versioning platform.gunner86 wrote: ↑Mon Feb 01, 2021 8:53 pmHi exibar ,
i have the same problem now .
on front page it works but admin page PHP Eror 500
1- i update my PHP to 7.2 , 7.3 , 7.4 but also the front page gone . then back to PHP 5.6 as you did and then works . but i can not log in to admin panel
2- i used the codes but didnt work agin , then changed the vqmod newer but didnt work again .
what i have to do ? would you please help me about it ?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
i did all of these
I have several 1.5.6.4 sites running on PHP 7.3. I used the new encryption.php file, upgraded vqmod to the latest version
i didint
amend admin.php and admin/config.php files to show mysqli as the DB driver
please would you tell me what is it and how can i fix it . thanks
Code: Select all
define('DB_DRIVER', 'mysql');
Code: Select all
define('DB_DRIVER', 'mysqli');
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
![Smiley :)](./images/smilies/smiley.gif)
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
I am just upgrading an OC 1.5.6.4 to PHP 7.4 (on localhost at the moment), the frontend running well, but the admin page does not show up, I am having a white screen. Did you encounter with this before changing the PHP version on server?
I had to replace the old 2.6.1 vqmod to a newer one 2.6.4 since I was getting the ...continue 2; to break 2... error message, the admin page disappeared after then. Do you have some recommedation regarding the vqmod version on PHP 7.4? Any help would be appreciated. Thanks in advance.
Users browsing this forum: No registered users and 339 guests