Post by David Henry » Wed Jul 22, 2020 12:44 am

I've set up OpenCart Version 3.0.3.3 running php7.4 and journal3.

I see a lot of errors until I switch down to php7.3, the only warning I see now is:

Code: Select all

Warning: Use of undefined constant OPENCART_SERVER - assumed 'OPENCART_SERVER' (this will throw an Error in a future version of PHP) in /usr/www/users/website/live/admin/controller/marketplace/marketplace.php on line 151
Is this normal?

Should 3.0.3.3 run on php7.4?

D

Newbie

Posts

Joined
Fri Sep 26, 2014 2:31 am

Post by IP_CAM » Wed Jul 22, 2020 7:39 am

'OPENCART_SERVER' is not a OC default type Code, but probably
related to your Journal Theme. So, better get in Contact with Journal on
this.
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.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by JNeuhoff » Wed Jul 22, 2020 7:19 pm

So, better get in Contact with Journal on this.
Or use a proper standard-compliant web theme ;D

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by xxvirusxx » Wed Jul 22, 2020 8:06 pm

IP_CAM wrote:
Wed Jul 22, 2020 7:39 am
'OPENCART_SERVER' is not a OC default type Code, but probably
It is :)

Code: Select all

$curl = curl_init(OPENCART_SERVER . 'index.php?route=marketplace/api' . $url);

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

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

Post by IP_CAM » Wed Jul 22, 2020 9:06 pm

OOPS, sorry, I was not aware about this, since I use no such Version ... :o ::)

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.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by moneycarlo » Fri Jul 31, 2020 7:47 am

I think this is defined in the config.php files. Check both of those to make sure it's defined in there.

Active Member

Posts

Joined
Wed Sep 28, 2011 3:40 am

Post by EvolveWebHosting » Mon Aug 03, 2020 5:35 am

It needs to be in admin/config.php after the database credentials.

Code: Select all

// OpenCart API
define('OPENCART_SERVER', 'https://www.opencart.com/');

2 Week FREE Trial of our Shared Hosting plans (DIrectAdmin or cPanel) for new customers
2 Week FREE Trial of Astra Firewall and Malware Scanner
Visit our website for full details and to start your trial today - www.evolvewebhost.com


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA
Who is online

Users browsing this forum: No registered users and 34 guests