Post by stef83136 » Thu Mar 26, 2020 2:52 pm

Hello, I am testing on a clean Opencart 3.0.2 and PHP 7 installation in which we imported our shop which was initially in Opencart 2.0.3

With PHP 7 = apparently no problem
With PHP 7.1 = long time in Admin = 400 Bad Request = Refreshing the page allows you to find the admin
With PHP 7.2 = same as 7.1
With PHP 7.3 apparently no problem
With PHP 7.4 = Notice: Trying to access array offset on value of type null in /home/xxxx/storage/vendor/scss.inc.php on line 1753Notice: Trying to access array offset on value of type null in / home / xxxx /storage/vendor/scss.inc.php on line 1753Notice: Trying to access array offset on value of type null in /home/xxxx/storage/vendor/scss.inc.php on line 1753Notice: Trying to access array offset on value of type null in /home/xxxx/storage/vendor/scss.inc.php on line

It seems that there is no problem in front

I thought that Opencart 3 was perfectly compatible with all PHP 7.X versions?

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by thekrotek » Thu Mar 26, 2020 3:05 pm

It can't be compatible with all PHP versions since it was released a long time ago, when PHP 7.3 or 7.4 didn't even exist. Also notice is not really an error, ignore it.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by stef83136 » Thu Mar 26, 2020 5:57 pm

OK thanks for your answer. So we stay under PHP7

We have 400 Bad Request errors when for example we do a refresh.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by paulfeakins » Thu Mar 26, 2020 6:14 pm

stef83136 wrote:
Thu Mar 26, 2020 2:52 pm
I am testing on a clean Opencart 3.0.2
I wonder if it's really "clean".

The number of people who say that here and then it turns out there are all sorts of things installed is large.

So are you sure it's clean?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by straightlight » Thu Mar 26, 2020 6:28 pm

stef83136 wrote:
Thu Mar 26, 2020 5:57 pm
OK thanks for your answer. So we stay under PHP7

We have 400 Bad Request errors when for example we do a refresh.
See this post: viewtopic.php?f=181&t=216749#p781090 regarding PHP version compatibility. In the mean time, please post your recent server access logs activities regarding the index: 400 .

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by stef83136 » Thu Mar 26, 2020 6:38 pm

Let me explain. I first installed Opencart 3.0.2 then Journal 3 then installed the modules which I used under our version Opencart 2.3 and which avaieint a version available in opencart 3 then then imported 1 by one the tables of the Opencart database 2 to Opencart 3.

Everything is not too bad except sometimes this story of 400 Bad Request errors and another problem, the icons that do not appear in front.

I suppose a problem of htaccess and / or config.php but I cannot find the solution. I turn around.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by stef83136 » Thu Mar 26, 2020 6:42 pm

straightlight wrote:
Thu Mar 26, 2020 6:28 pm
stef83136 wrote:
Thu Mar 26, 2020 5:57 pm
OK thanks for your answer. So we stay under PHP7

We have 400 Bad Request errors when for example we do a refresh.
See this post: viewtopic.php?f=181&t=216749#p781090 regarding PHP version compatibility. In the mean time, please post your recent server access logs activities regarding the index: 400 .
We don't have any new Latest web server error log messages

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by straightlight » Thu Mar 26, 2020 6:54 pm

stef83136 wrote:
Thu Mar 26, 2020 6:42 pm
straightlight wrote:
Thu Mar 26, 2020 6:28 pm
stef83136 wrote:
Thu Mar 26, 2020 5:57 pm
OK thanks for your answer. So we stay under PHP7

We have 400 Bad Request errors when for example we do a refresh.
See this post: viewtopic.php?f=181&t=216749#p781090 regarding PHP version compatibility. In the mean time, please post your recent server access logs activities regarding the index: 400 .
We don't have any new Latest web server error log messages
If you cannot access your logs from your FTP root domain folder > logs or from your cPanel > Error Logs icon, and you cannot see any readings from your OC admin - > systems - > maintenance - > error logs page, contacting your host to gather those information would be the best option.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by stef83136 » Thu Mar 26, 2020 7:06 pm

straightlight wrote:
Thu Mar 26, 2020 6:54 pm
stef83136 wrote:
Thu Mar 26, 2020 6:42 pm
straightlight wrote:
Thu Mar 26, 2020 6:28 pm


See this post: viewtopic.php?f=181&t=216749#p781090 regarding PHP version compatibility. In the mean time, please post your recent server access logs activities regarding the index: 400 .
We don't have any new Latest web server error log messages
If you cannot access your logs from your FTP root domain folder > logs or from your cPanel > Error Logs icon, and you cannot see any readings from your OC admin - > systems - > maintenance - > error logs page, contacting your host to gather those information would be the best option.
we have access to Cpanel but there is no recent error :

Code: Select all

[Thu Mar 26 03:47:18.988138 2020] [authz_core:error] [pid 4323:tid 47343037892352] [client 66.249.66.195:0] AH01630: client denied by server configuration: /home/mest8941/public_html/ads.txt
[Thu Mar 26 00:03:40.251376 2020] [authz_core:error] [pid 10749:tid 47343073613568] [client 66.249.66.220:0] AH01630: client denied by server configuration: /home/mest8941/public_html/ads.txt
[Thu Mar 26 00:03:26.871866 2020] [authz_core:error] [pid 25278:tid 47343075714816] [client 66.249.66.195:0] AH01630: client denied by server configuration: /home/mest8941/public_html/ads.txt
[Thu Mar 26 00:00:11.986056 2020] [authz_core:error] [pid 10870:tid 47343039993600] [client 66.249.66.196:0] AH01630: client denied by server configuration: /home/mest8941/public_html/ads.txt   

[2020-03-19 23:44:00]: uid: (1055/mest8941) gid: (1058/mest8941) cmd: wredirect.cgi
[2020-03-19 23:43:00]: uid: (1055/mest8941) gid: (1058/mest8941) cmd: wredirect.cgi
And in Opencart :

No error

Our server is the same as when we were under opencart 2.3 with the same settings.
Last edited by straightlight on Thu Mar 26, 2020 8:03 pm, edited 1 time in total.
Reason: Added code tags.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by stef83136 » Thu Mar 26, 2020 7:51 pm

the change from Output compression level to 0 in Opencart apparently solves the problem of error 400

There remains now the problem of icons that do not load in the Front.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by straightlight » Thu Mar 26, 2020 8:06 pm

stef83136 wrote:
Thu Mar 26, 2020 7:51 pm
the change from Output compression level to 0 in Opencart apparently solves the problem of error 400

There remains now the problem of icons that do not load in the Front.
Then, it might be the reason why. You claim on using the same server settings as OC v2.3 releases while PHP industry did made changes to their compression outputs since. Perhaps using an updated encryption.php file might help in this case: viewtopic.php?p=737337#p737337 or: viewtopic.php?p=737337#p737628 .

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by paulfeakins » Fri Mar 27, 2020 7:06 pm

stef83136 wrote:
Thu Mar 26, 2020 6:38 pm
Let me explain. I first installed Opencart 3.0.2 then Journal 3 then installed the modules which I used under our version Opencart 2.3 and which avaieint a version available in opencart 3 then then imported 1 by one the tables of the Opencart database 2 to Opencart 3.
And you call this "clean"? :crazy: :laugh:

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by stef83136 » Fri Mar 27, 2020 7:49 pm

paulfeakins wrote:
Fri Mar 27, 2020 7:06 pm
stef83136 wrote:
Thu Mar 26, 2020 6:38 pm
Let me explain. I first installed Opencart 3.0.2 then Journal 3 then installed the modules which I used under our version Opencart 2.3 and which avaieint a version available in opencart 3 then then imported 1 by one the tables of the Opencart database 2 to Opencart 3.
And you call this "clean"? :crazy: :laugh:
Glad to see that I make you laugh, in these times and confinement it will have had less merit in relaxing you.

For information the problem comes from JOURNAL3 and Modsecurity that sometimes generates errors 400, 502. If that can help.

Good luck and thank you for trying to help me.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by paulfeakins » Fri Mar 27, 2020 8:32 pm

stef83136 wrote:
Fri Mar 27, 2020 7:49 pm
Glad to see that I make you laugh, in these times and confinement it will have had less merit in relaxing you.

For information the problem comes from JOURNAL3 and Modsecurity that sometimes generates errors 400, 502. If that can help.

Good luck and thank you for trying to help me.
Thanks for the update.

For future reference "clean" means a fresh install with no extensions, no theme, no modifications etc. And DEFINITELY not Journal :laugh:

Glad you got it sorted in the end.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by danielb123 » Mon Apr 20, 2020 5:52 pm

I use OC 3.0.3.2 with journal3, php.7.3 work without problems, with 7.4 it brake the design and maybe more issues.

New member

Posts

Joined
Wed Nov 15, 2017 8:48 pm

Post by stef83136 » Mon Apr 20, 2020 6:13 pm

danielb123 wrote:
Mon Apr 20, 2020 5:52 pm
I use OC 3.0.3.2 with journal3, php.7.3 work without problems, with 7.4 it brake the design and maybe more issues.
Yes me too. Nickel with php7.3

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by hangoutsanjay » Sat Jun 27, 2020 1:03 pm

go to page /home/ xxxx /storage/vendor/scss.inc.php
and find line 1753 and change
$key = $key[1];
to
$key = @$key[1];

Newbie

Posts

Joined
Thu Jan 25, 2018 4:50 pm


Post by OSWorX » Sat Jun 27, 2020 4:00 pm

hangoutsanjay wrote:
Sat Jun 27, 2020 1:03 pm
go to page /home/ xxxx /storage/vendor/scss.inc.php
and find line 1753 and change
$key = $key[1];
to
$key = @$key[1];
A completely stupid advice!
Why?
Because the suggested change does not do anything else but supressing only the warning/error with the @

While such may help in some very rare situations, this here is NO solution for the problem.
Would be better if the vendor fix that and make the theme 7.4 compatible.

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


User avatar
Guru Member
Online

Posts

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

Post by sw!tch » Sat Jun 27, 2020 4:43 pm

hangoutsanjay wrote:
Sat Jun 27, 2020 1:03 pm
go to page /home/ xxxx /storage/vendor/scss.inc.php
and find line 1753 and change
$key = $key[1];
to
$key = @$key[1];
^ No sense in a half baked fix like this, the above is probably the worst suggestion for a "fix" I have seen in awhile.

Even if you "suppress" this issue, there are still many other issues with Opencart 3.0.x series and PHP 7.4. As far as I know they are only targeting the 3.0.x series to PHP 7.3.9.

That SASS issue is actually a dependency in Opencart and pulled in via composer "leafo/scssphp". There are no updates for it anymore as its an outdated archived repo.. The replacement is now referenced to scssphp/scssphp. - https://github.com/scssphp/scssphp/

Unless you are a developer and familiar with composer packages, I suggest you stay on PHP 7.3.9 until there are proper updates for 7.4. Further you will run into twig issues, which is whole other topic.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by JNeuhoff » Sat Jun 27, 2020 5:58 pm

the change from Output compression level to 0 in Opencart apparently solves the problem of error 400
A standard OpenCart 3.0.x seems to be working fine with PHP 7.4. There is possibly a clash between the way Journal3 handles the HTML minify, and the OpenCart output compression. Journal3 unnecessarily modifies the core engine file 'system/library/response.php' for this.

In general, the fact that Journal3 has to rely on modified core engine files makes it a poor choice. A proper web theme has no need for modifying any core files via OCmod.

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


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 110 guests