Post by scratch21 » Tue Oct 06, 2020 4:15 pm

Hello
I did an installation of Opencart 3.0.3.6 and i tried to use Php 7.4.10 but i get a message that is not compatible and i have to use Php 7.3 .
Any idea when this is going to be fixed?
Thank you in advanced

Newbie

Posts

Joined
Wed Apr 03, 2019 12:08 am

Post by JNeuhoff » Tue Oct 06, 2020 4:27 pm

Without further details nobody will be able to help you. OpenCart 3.0.3.6 works just fine for PHP 7.4

Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by scratch21 » Tue Oct 06, 2020 5:19 pm

Hello
Here are the details
Clean installation Opencart 3.0.3.6 , try to use Php 7.4.10 and get the following message
Unsupported PHP Version
Opencart 3.0.3.6 does not fully support PHP 7.4.10 version!

Consult with your hosting provider for more information regarding how to downgrade PHP to 7.3 (or lower).
If I return to Php 7.3.22 everything works ok
Thank you in advanced

Newbie

Posts

Joined
Wed Apr 03, 2019 12:08 am

Post by JNeuhoff » Tue Oct 06, 2020 5:46 pm

This is something for your webhost to sort out. Your error message 'Unsupported PHP Version' does not come from OpenCart. All OpenCart does is this in the system/startup.php:

Code: Select all

// Check Version
if (version_compare(phpversion(), '7.3.0', '<') == true) {
	exit('PH7.3+ Required');
}
And OpenCart 3.0.3.6 works just fine with a properly installed PHP 7.4.x release.

Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by OSWorX » Tue Oct 06, 2020 5:52 pm

scratch21 wrote:
Tue Oct 06, 2020 5:19 pm
Unsupported PHP Version
Opencart 3.0.3.6 does not fully support PHP 7.4.10 version!
Such a message does not exist in a standard and original OpenCart Installation.
Installed that version for a client 1 hour ago, php 7.4.x - and worked as it should.

From where do you have the OpenCart Files?

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by OSWorX » Tue Oct 06, 2020 5:53 pm

JNeuhoff wrote:
Tue Oct 06, 2020 5:46 pm
This is something for your webhost to sort out. Your error message 'Unsupported PHP Version' does not come from OpenCart. All OpenCart does is this in the system/startup.php:

Code: Select all

// Check Version
if (version_compare(phpversion(), '7.3.0', '<') == true) {
	exit('PH7.3+ Required');
}
And OpenCart 3.0.3.6 works just fine with a properly installed PHP 7.4.x release.
It ha a second validation inside the step_2.php:

Code: Select all

private function validate() {
		if (phpversion() < '7.3') {
			$this->error['warning'] = $this->language->get('error_version');
		}

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by scratch21 » Tue Oct 06, 2020 6:16 pm

Hello
The issue was created from Journal theme when I return to the default theme it worked fine with php 7.4.10 , i contact Journal support and informed them for the error.
Thank you very much for the answers

Newbie

Posts

Joined
Wed Apr 03, 2019 12:08 am

User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by scratch21 » Tue Oct 06, 2020 6:43 pm

xxvirusxx wrote:
Tue Oct 06, 2020 6:19 pm
If you have used forum search :)

viewtopic.php?f=10&t=220290#p801146
Thank you very much for the help

Newbie

Posts

Joined
Wed Apr 03, 2019 12:08 am

Post by JNeuhoff » Tue Oct 06, 2020 6:55 pm

Clean installation Opencart 3.0.3.6
Well, that was anything but a clean installation :)

Journal3 is one of the worst OpenCart extensions, it's not a proper standard-compliant theme!

Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by OSWorX » Tue Oct 06, 2020 7:27 pm

scratch21 wrote:
Tue Oct 06, 2020 6:16 pm
Hello
The issue was created from Journal theme when I return to the default theme it worked fine with php 7.4.10 ..
One MORE reason to state in your 1st post what all you are using!
And this Theme is NOT supported here.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by akbartahir » Sat Nov 21, 2020 12:04 am

simply open Cpanel given by your host and change PHP version from 7.4 to 7.3 .. simple

Newbie

Posts

Joined
Mon Nov 02, 2020 2:10 am

Post by OSWorX » Sat Nov 21, 2020 12:42 am

akbartahir wrote:
Sat Nov 21, 2020 12:04 am
simply open Cpanel given by your host and change PHP version from 7.4 to 7.3 .. simple
Simple is what YOU mean it's simple!
But it is NOT, what for do you think php 7.4.x was published - and 8.x will be published soon.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by SVN » Sun Jan 17, 2021 7:57 pm

scratch21 wrote:
Tue Oct 06, 2020 6:16 pm
Hello
The issue was created from Journal theme when I return to the default theme it worked fine with php 7.4.10 , i contact Journal support and informed them for the error.
Thank you very much for the answers
Did you get an answer ?
What was the solution, I have the same problem.
If I put it back to 7.3 I get an error.

Warning: mysqli::__construct(): (HY000/1045): Access denied for user '***'@'localhost-mysql' (using password: YES) in /home/users/***/system/library/db/mysqli.php on line 7
Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /home/users/***/system/library/db/mysqli.php on line 10
Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /home/users/***/system/library/db/mysqli.php on line 10
Fatal error: Uncaught Exception: Error: <br />Error No: in /home/users/***/system/library/db/mysqli.php:10 Stack trace: #0 /home/users/***/storage/modification/system/library/db.php(35): DB\MySQLi->__construct('mysqlhost.jouwd...', '***', '***', '***', '3306') #1 /home/users/***/system/framework.php(80): DB->__construct('mysqli', '***', '***', '***', 'D3196030', '3306') #2 /home/users/***/system/startup.php(104): require_once('/home/users/A00...') #3 /home/users/***/index.php(19): start('catalog') #4 {main} thrown in /home/users/***/system/library/db/mysqli.php on line 10

User avatar
SVN
Active Member

Posts

Joined
Mon Jan 03, 2011 11:59 pm

Post by JNeuhoff » Sun Jan 17, 2021 8:26 pm

@SVN: You issue is with the DB connection, nothing to do with the problem discussed in this thread. Don't hijack this threat, open a new topic for this.

Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by SVN » Sun Jan 17, 2021 8:47 pm

JNeuhoff wrote:
Sun Jan 17, 2021 8:26 pm
@SVN: You issue is with the DB connection, nothing to do with the problem discussed in this thread. Don't hijack this threat, open a new topic for this.
I think this is related because I got the PHP error after updating Journal Theme. I think normaly Journal does not affect core files of OC.
I put PHP back to 7.3 and than the error was visible.

User avatar
SVN
Active Member

Posts

Joined
Mon Jan 03, 2011 11:59 pm

Post by JNeuhoff » Sun Jan 17, 2021 9:05 pm

Well your DB connection issue is a separate one. And with regards to Journal3: The latter modifies OC core engine files that's one of the reasons why it's such a poor-quality theme, there is no need for a web theme to use its own framework.

With regards to the PHP version issue, follow the advice given on this form thread, or get in touch with the Journal-support, or use a standard-compliant web theme.

Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 2 guests