Post by mikeinterserv » Sat Mar 13, 2021 2:24 am

A lot of people like the full html email same as customer gets instead of order alert which is rubbish anyway.
The alert does have less info though and may be preferable in some instances
I have an OCMod for it if you want to try it

Your email is the result of some twig issue
Although 3.0.2.0 should not have that

Attachments


Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by sw!tch » Sat Mar 13, 2021 6:24 am

The whitespace issue is caused by outdated twig dependency on PHP 7.4. I don't have the fixes offhand, you will need to search for it or rollback to php 7.3.

There are also a couple more PHP 7.4 fixes needed on OC versions prior to 3.0.3.6

Maybe PM @xxvirusxx he might have a list of fixes for PHP 7.4.

Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by RaceVTA » Sat Mar 13, 2021 11:38 am

sw!tch wrote:
Sat Mar 13, 2021 6:24 am
The whitespace issue is caused by outdated twig dependency on PHP 7.4. I don't have the fixes offhand, you will need to search for it or rollback to php 7.3.

There are also a couple more PHP 7.4 fixes needed on OC versions prior to 3.0.3.6

Maybe PM @xxvirusxx he might have a list of fixes for PHP 7.4.
That would explain it, have some small issues after changing servers, maybe should update the store.

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by mikeinterserv » Sun Mar 14, 2021 2:51 am

To fix your twig issues try this
Find system/library/template/twig/lexer.php line 162

Code: Select all

if (isset($this->positions[2][$this->position][0]) ) {
    $text = rtrim($text);
Change to

Code: Select all

if (isset($this->positions[2][$this->position][0]) && ($this->options['whitespace_trim'] === $this->positions[2][$this->position][0])) {
   $text = rtrim($text);
I just fully tested this on 3.0.3.2 with the issue with php7.4 and it worked.
This should fix your email alert no space issue

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by RaceVTA » Mon Mar 15, 2021 9:47 am

mikeinterserv wrote:
Sun Mar 14, 2021 2:51 am
To fix your twig issues try this
Find system/library/template/twig/lexer.php line 162

Code: Select all

if (isset($this->positions[2][$this->position][0]) ) {
    $text = rtrim($text);
Change to

Code: Select all

if (isset($this->positions[2][$this->position][0]) && ($this->options['whitespace_trim'] === $this->positions[2][$this->position][0])) {
   $text = rtrim($text);
I just fully tested this on 3.0.3.2 with the issue with php7.4 and it worked.
This should fix your email alert no space issue
Thanks, but did not help, still coming in the same.

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by mikeinterserv » Mon Mar 15, 2021 7:13 pm

Did you refresh your cache and modification

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by RaceVTA » Mon Mar 15, 2021 9:34 pm

just did the theme sass and modifications from the admin side

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by RaceVTA » Tue Mar 16, 2021 10:02 am

mikeinterserv wrote:
Mon Mar 15, 2021 7:13 pm
Did you refresh your cache and modification
That was it, works like it should now ... Thanks !!!

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by RaceVTA » Sat Mar 20, 2021 9:40 pm

Store worked fine for a couple days, now all orders going to MISSING ORDERS (paypal checkout), when I try to change to processing get INTERNAL SERVER ERROR popup window, error log shows:

2021-03-19 21:50:48 - PHP Notice: Trying to access array offset on value of type null in /home/rcaction/public_html/storagevta/vendor/scss.inc.php on line 1753
2021-03-19 17:51:19 - PHP Warning: unlink(/home/rcaction/public_html/storagevta/cache/cache.catalog.language.1616178892): No such file or directory in /home/rcaction/public_html/racevta.com/store/system/library/cache/file.php on line 68
2021-03-19 15:03:04 - PHP Notice: Trying to access array offset on value of type bool in /home/rcaction/public_html/racevta.com/store/catalog/controller/startup/startup.php on line 166
2021-03-17 10:26:27 - PHP Notice: A non well formed numeric value encountered in /home/rcaction/public_html/storagevta/modification/catalog/controller/product/category.php on line 359
2021-03-16 6:01:58 - PHP Warning: unlink(/home/rcaction/public_html/storagevta/cache/cache.catalog.language.1615878118): No such file or directory in /home/rcaction/public_html/racevta.com/store/system/library/cache/file.php on line 68

The last successful order came in on 3/17

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by mikeinterserv » Sat Mar 20, 2021 11:20 pm

Find line 1753 in scss.inc.php

replace with

Code: Select all

if (is_array($key)) $key = $key[1];

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by RaceVTA » Sun Mar 21, 2021 12:47 am

Ok, so now I can edit the orders that were PENDING, but still get the INTERNAL SERVER ERROR pop up window when trying to change MISSING ORDERS to PENDING.

What would cause the change in the first place, store processed orders fine then overnight stopped.

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by mikeinterserv » Sun Mar 21, 2021 1:51 am

Something :-)

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by RaceVTA » Sun Mar 21, 2021 5:18 am

mikeinterserv wrote:
Sat Mar 20, 2021 11:20 pm
Find line 1753 in scss.inc.php

replace with

Code: Select all

if (is_array($key)) $key = $key[1];
New orders still going to MISSING ORDERS despite being processed trough paypal, im confused, everything was working fine then overnight it took a shit ...

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by sw!tch » Sun Mar 21, 2021 5:54 am

Check your PHP server error log.

Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by RaceVTA » Sun Mar 21, 2021 6:32 am

sw!tch wrote:
Sun Mar 21, 2021 5:54 am
Check your PHP server error log.
where do i find this ??

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by megagrocery » Sun Mar 21, 2021 7:41 am

Hi,
I have been using opencart for my website https://MegaGrocery.com.au for the past five years now. I recently decided to build a new site https://ozgalore.com with many more features, and wanted to transfer all data in particular my products into this new site in wordpress, however after many efforts, I failed to import even one field, so I gave up and started entering my products manually. It is taking time but the one advantage is that I use new keywords and refine onsite SEO and fix any errors along the way. I guess, if I were to change web hosting, I would have faced the same or similar problem.
I do hope that opencart makes it easier to migrate from one platform to another.

Regards,

Amin
https://ozgalore.com

Regards,

Amin
https://ozgalore.au/


Newbie

Posts

Joined
Mon Jun 20, 2016 7:31 pm


Post by sw!tch » Sun Mar 21, 2021 8:11 am

RaceVTA wrote:
Sun Mar 21, 2021 6:32 am
sw!tch wrote:
Sun Mar 21, 2021 5:54 am
Check your PHP server error log.
where do i find this ??
Root of your webspace in a logs folder or in your hosting control panel somewhere. If you cant find them ask your web host.

Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by RaceVTA » Wed Mar 24, 2021 2:13 am

so I went ahead and installed 3.0.3.7 over my 3.0.2.0 using Softaculous, now getting on web and admin :
This page isn’t workingracevta.com is currently unable to handle this request.
HTTP ERROR 500
error_log :
#0 /home/rcaction/public_html/racevta.com/store/system/library/template.php(51): Template\Twig->render('default/templat...', '{% if modules %...')
#1 /home/rcaction/public_html/racevta.com/store/system/engine/loader.php(125): Template->render('default/templat...', '')
#2 /home/rcaction/public_html/racevta.com/store/catalog/controller/common/column_left.php(72): Loader->view('common/column_l...', Array)
#3 /home/rcaction/public_html/racevta.com/store/system/engine/action.php(79): ControllerCommonColumnLeft->index(Array)
#4 /home/rcaction/public_html/racevta.com/store/system/engine/loader.php(48): Action->execute(Object(Registry), Array)
#5 /home/rcaction/public_html/racevta.com/store/catalog/controller/common/home.php(12): Loader->controller('common/column_l...')
#6 /home/rcaction/public_html/racevta.com/store/system/engine/action.php(79): ControllerCommonHo in /home/rcaction/public_html/racevta.com/store/system/library/template/twig.php on line 31
[23-Mar-2021 18:08:27 UTC] PHP Fatal error: Uncaught Error: Class 'Twig\Loader\ArrayLoader' not found in /home/rcaction/public_html/racevta.com/store/system/library/template/twig.php:31
Stack trace:
#0 /home/rcaction/public_html/racevta.com/store/system/library/template.php(51): Template\Twig->render('default/templat...', '{% if modules %...')
#1 /home/rcaction/public_html/racevta.com/store/system/engine/loader.php(125): Template->render('default/templat...', '')
#2 /home/rcaction/public_html/racevta.com/store/catalog/controller/common/column_left.php(72): Loader->view('common/column_l...', Array)
#3 /home/rcaction/public_html/racevta.com/store/system/engine/action.php(79): ControllerCommonColumnLeft->index(Array)
#4 /home/rcaction/public_html/racevta.com/store/system/engine/loader.php(48): Action->execute(Object(Registry), Array)
#5 /home/rcaction/public_html/racevta.com/store/catalog/controller/common/home.php(12): Loader->controller('common/column_l...')
#6 /home/rcaction/public_html/racevta.com/store/system/engine/action.php(79): ControllerCommonHo in /home/rcaction/public_html/racevta.com/store/system/library/template/twig.php on line 31
[23-Mar-2021 18:08:28 UTC] PHP Fatal error: Uncaught Error: Class 'Twig\Loader\ArrayLoader' not found in /home/rcaction/public_html/racevta.com/store/system/library/template/twig.php:31
Stack trace:
#0 /home/rcaction/public_html/racevta.com/store/system/library/template.php(51): Template\Twig->render('default/templat...', '{% if modules %...')
#1 /home/rcaction/public_html/racevta.com/store/system/engine/loader.php(125): Template->render('default/templat...', '')
#2 /home/rcaction/public_html/racevta.com/store/catalog/controller/common/column_left.php(72): Loader->view('common/column_l...', Array)
#3 /home/rcaction/public_html/racevta.com/store/system/engine/action.php(79): ControllerCommonColumnLeft->index(Array)
#4 /home/rcaction/public_html/racevta.com/store/system/engine/loader.php(48): Action->execute(Object(Registry), Array)
#5 /home/rcaction/public_html/racevta.com/store/catalog/controller/common/home.php(12): Loader->controller('common/column_l...')
#6 /home/rcaction/public_html/racevta.com/store/system/engine/action.php(79): ControllerCommonHo in /home/rcaction/public_html/racevta.com/store/system/library/template/twig.php on line 31
[23-Mar-2021 18:11:13 UTC] PHP Fatal error: Uncaught Error: Class 'Twig\Loader\ArrayLoader' not found in /home/rcaction/public_html/racevta.com/store/system/library/template/twig.php:31
Stack trace:
#0 /home/rcaction/public_html/racevta.com/store/system/library/template.php(51): Template\Twig->render('default/templat...', '<div class="hid...')
#1 /home/rcaction/public_html/racevta.com/store/system/engine/loader.php(125): Template->render('default/templat...', '')
#2 /home/rcaction/public_html/racevta.com/store/catalog/controller/extension/captcha/invisible_captcha.php(6): Loader->view('extension/captc...', Array)
#3 /home/rcaction/public_html/racevta.com/store/system/engine/action.php(79): ControllerExtensionCaptchaInvisibleCaptcha->index(Array)
#4 /home/rcaction/public_html/racevta.com/store/system/engine/loader.php(48): Action->execute(Object(Registry), Array)
#5 /home/rcaction/public_html/racevta.com/store/catalog/controller/product/product.php(369): Loader->controller('extension/captc...')
#6 /home/rcaction/public_html/racevta.com/store/system/engi in /home/rcaction/public_html/racevta.com/store/system/library/template/twig.php on line 31
[23-Mar-2021 18:12:14 UTC] PHP Fatal error: Uncaught Error: Class 'Twig\Loader\ArrayLoader' not found in /home/rcaction/public_html/racevta.com/store/system/library/template/twig.php:31
Stack trace:
#0 /home/rcaction/public_html/racevta.com/store/system/library/template.php(51): Template\Twig->render('default/templat...', '{% if modules %...')
#1 /home/rcaction/public_html/racevta.com/store/system/engine/loader.php(125): Template->render('default/templat...', '')
#2 /home/rcaction/public_html/racevta.com/store/catalog/controller/common/column_left.php(72): Loader->view('common/column_l...', Array)
#3 /home/rcaction/public_html/racevta.com/store/system/engine/action.php(79): ControllerCommonColumnLeft->index(Array)
#4 /home/rcaction/public_html/racevta.com/store/system/engine/loader.php(48): Action->execute(Object(Registry), Array)
#5 /home/rcaction/public_html/racevta.com/store/catalog/controller/common/home.php(12): Loader->controller('common/column_l...')
#6 /home/rcaction/public_html/racevta.com/store/system/engine/action.php(79): ControllerCommonHo in /home/rcaction/public_html/ra

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by RaceVTA » Wed Mar 24, 2021 4:05 am

changed the storage dir and was able to get store working, changed time zone in admin and save it, got logged out and now cant log back into the admin or store front, the login screen just loops ... so much for easy transfer, store been down 2 weeks now :(

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by RaceVTA » Wed Mar 24, 2021 4:18 am

did this and it worked, why so many bugs that are not being fixed ??
system/config/default.php
system/config/catralog.php

Find:

$_['session_engine'] = 'db';

Replace

$_['session_engine'] = 'file';

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm
Who is online

Users browsing this forum: No registered users and 10 guests