Post by RaceVTA » Fri Mar 12, 2021 4:20 am

Downloaded the entire store folder and created a db backup, followed this http://docs.opencart.com/en-gb/administ ... ng-server/
Page not loading showing
This page isn’t workingracevta.com is currently unable to handle this request.
HTTP ERROR 500

error_log file :

Code: Select all

[11-Mar-2021 18:38:32 UTC] PHP Warning:  "continue 2" targeting switch is equivalent to "break 2". Did you mean to use "continue 3"? in /home/rcaction/public_html/racevta.com/store/vqmod/vqmod.php on line 684
[11-Mar-2021 18:38:32 UTC] PHP Warning:  require_once(/home2/rcaction/racevta.com/store/system/startup.php): failed to open stream: No such file or directory in /home/rcaction/public_html/racevta.com/store/index.php on line 21
[11-Mar-2021 18:38:32 UTC] PHP Fatal error:  require_once(): Failed opening required '/home2/rcaction/racevta.com/store/system/startup.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home/rcaction/public_html/racevta.com/store/index.php on line 21
[11-Mar-2021 18:38:51 UTC] PHP Warning:  "continue 2" targeting switch is equivalent to "break 2". Did you mean to use "continue 3"? in /home/rcaction/public_html/racevta.com/store/vqmod/vqmod.php on line 684
[11-Mar-2021 18:38:51 UTC] PHP Warning:  require_once(/home2/rcaction/racevta.com/store/system/startup.php): failed to open stream: No such file or directory in /home/rcaction/public_html/racevta.com/store/index.php on line 21
[11-Mar-2021 18:38:51 UTC] PHP Fatal error:  require_once(): Failed opening required '/home2/rcaction/racevta.com/store/system/startup.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home/rcaction/public_html/racevta.com/store/index.php on line 21
[11-Mar-2021 18:38:53 UTC] PHP Warning:  "continue 2" targeting switch is equivalent to "break 2". Did you mean to use "continue 3"? in /home/rcaction/public_html/racevta.com/store/vqmod/vqmod.php on line 684
[11-Mar-2021 18:38:53 UTC] PHP Warning:  require_once(/home2/rcaction/racevta.com/store/system/startup.php): failed to open stream: No such file or directory in /home/rcaction/public_html/racevta.com/store/index.php on line 21
[11-Mar-2021 18:38:53 UTC] PHP Fatal error:  require_once(): Failed opening required '/home2/rcaction/racevta.com/store/system/startup.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home/rcaction/public_html/racevta.com/store/index.php on line 21
[11-Mar-2021 18:38:54 UTC] PHP Warning:  "continue 2" targeting switch is equivalent to "break 2". Did you mean to use "continue 3"? in /home/rcaction/public_html/racevta.com/store/vqmod/vqmod.php on line 684
[11-Mar-2021 18:38:54 UTC] PHP Warning:  require_once(/home2/rcaction/racevta.com/store/system/startup.php): failed to open stream: No such file or directory in /home/........

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Active Member

Posts

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

Post by by mona » Fri Mar 12, 2021 4:30 am


DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by RaceVTA » Fri Mar 12, 2021 5:33 am

Awesome Thank you, getting somewhere but now getting this :
Warning: mysqli::__construct(): (HY000/1044): Access denied for user 'rcaction_openvta'@'localhost' to database 'rcaction_rojna_openvta' in /home/rcaction/public_html/racevta.com/store/system/library/db/mysqli.php on line 7Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /home/rcaction/public_html/racevta.com/store/system/library/db/mysqli.php on line 10Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /home/rcaction/public_html/racevta.com/store/system/library/db/mysqli.php on line 10

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by by mona » Fri Mar 12, 2021 5:58 am

You are not connecting to the database

viewtopic.php?t=182436

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by RaceVTA » Fri Mar 12, 2021 6:12 am

Thank you, almost there ... web now loading but with this:

Warning: fopen(/home/rcaction/public_html/storage/logs/openbay.log): failed to open stream: No such file or directory in /home/rcaction/public_html/racevta.com/store/system/library/log.php on line 22Warning: fopen(/home/rcaction/public_html/storage/logs/openbay.log): failed to open stream: No such file or directory in /home/rcaction/public_html/racevta.com/store/system/library/log.php on line 22Warning: fclose() expects parameter 1 to be resource, bool given in /home/rcaction/public_html/racevta.com/store/system/library/log.php on line 39Warning: fopen(/home/rcaction/public_html/storage/logs/openbay.log): failed to open stream: No such file or directory in /home/rcaction/public_html/racevta.com/store/system/library/log.php on line 22Warning: fclose() expects parameter 1 to be resource, bool given in /home/rcaction/public_html/racevta.com/store/system/library/log.php on line 39Warning: fopen(/home/rcaction/public_html/storage/logs/error.log): failed to open stream: No such file or directory in /home/rcaction/public_html/racevta.com/store/system/library/log.php on line 22

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by sw!tch » Fri Mar 12, 2021 6:18 am

RaceVTA wrote:
Fri Mar 12, 2021 6:12 am
Thank you, almost there ... web now loading but with this:

Warning: fopen(/home/rcaction/public_html/storage/logs/openbay.log): failed to open stream: No such file or directory in /home/rcaction/public_html/racevta.com/store/system/library/log.php on line 22Warning: fopen(/home/rcaction/public_html/storage/logs/openbay.log): failed to open stream: No such file or directory in /home/rcaction/public_html/racevta.com/store/system/library/log.php on line 22Warning: fclose() expects parameter 1 to be resource, bool given in /home/rcaction/public_html/racevta.com/store/system/library/log.php on line 39Warning: fopen(/home/rcaction/public_html/storage/logs/openbay.log): failed to open stream: No such file or directory in /home/rcaction/public_html/racevta.com/store/system/library/log.php on line 22Warning: fclose() expects parameter 1 to be resource, bool given in /home/rcaction/public_html/racevta.com/store/system/library/log.php on line 39Warning: fopen(/home/rcaction/public_html/storage/logs/error.log): failed to open stream: No such file or directory in /home/rcaction/public_html/racevta.com/store/system/library/log.php on line 22
Check your storage path is correct and has proper permissions.

Also storage dir should be outside your public webspace for security reasons.

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 RaceVTA » Fri Mar 12, 2021 6:33 am

Got it, page now loads all looks good, but from the admin side whenever trying to save a ny kind of change I get this, guessing I need to change the permission somewhere ??

403
Forbidden
Access to this resource on the server is denied!

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by sw!tch » Fri Mar 12, 2021 6:39 am

Check your hosting cPanel and see if It has mod-security enabled. Most likely its triggering a rule, you may have to contact your host on this one.

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 RaceVTA » Fri Mar 12, 2021 10:34 pm

Ok, disabling mod security now allows me to save changes from the admin side and place store in maintenance mode

BUT, when placing a order through the store the order does not show up at the admin side, RECENT ACTIVITY shows someone placed a order but the order is nowhere to be found ...

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by mikeinterserv » Fri Mar 12, 2021 10:41 pm

Check missing orders
Filter on right of orders in admin

Active Member

Posts

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

Post by RaceVTA » Fri Mar 12, 2021 10:53 pm

It was just a wrong password in the email settings, changed it while moving servers.

Almost there

Cleared the cache and sass theme on the admin side and now getting this on the admin side :

Warning: include_once(/home/rcaction/public_html/racevta.com/store/storage/vendor/scss.inc.php): failed to open stream: No such file or directory in /home/rcaction/public_html/racevta.com/store/admin/controller/startup/sass.php on line 7Warning: include_once(): Failed opening '/home/rcaction/public_html/racevta.com/store/storage/vendor/scss.inc.php' for inclusion (include_path='.:/opt/alt/php74/usr/share/pear') in /home/rcaction/public_html/racevta.com/store/admin/controller/startup/sass.php on line 7

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by RaceVTA » Fri Mar 12, 2021 11:23 pm

email orders also coming in all funny, everything just in one line :

You have received an order.Order ID:553Date Added:03/12/2021Order Status:PendingProducts3xCOLT Chevy 1968 CAMARO 200mm (M2340)$98.97TotalsSub-Total:$98.97Pickup From Store:$0.00Coupon (2003):$-97.98FL Sales TAX:$0.07Total:$1.06

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by mikeinterserv » Fri Mar 12, 2021 11:31 pm

It looks like your storage is not defined or wrong in config for the scss error

Active Member

Posts

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

Post by RaceVTA » Fri Mar 12, 2021 11:56 pm

mikeinterserv wrote:
Fri Mar 12, 2021 11:31 pm
It looks like your storage is not defined or wrong in config for the scss error
<?php
// HTTP
define('HTTP_SERVER', 'http://racevta.com/store/admin/');
define('HTTP_CATALOG', 'http://racevta.com/store/');

// HTTPS
define('HTTPS_SERVER', 'http://racevta.com/store/admin/');
define('HTTPS_CATALOG', 'http://racevta.com/store/');

// DIR
define('DIR_APPLICATION', '/home/rcaction/public_html/racevta.com/store/admin/');
define('DIR_SYSTEM', '/home/rcaction/public_html/racevta.com/store/system/');
define('DIR_IMAGE', '/home/rcaction/public_html/racevta.com/store/image/');
define('DIR_STORAGE', '/home/rcaction/public_html/racevta.com/store/storage/');
define('DIR_CATALOG', '/home/rcaction/public_html/racevta.com/store/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', '***_openvta');
define('DB_PASSWORD', '****');
define('DB_DATABASE', '***_***_openvta');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

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

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by mikeinterserv » Sat Mar 13, 2021 12:01 am

Well that looks correct if that's where your storage folder is :-)

Try this
Replace

Code: Select all

define('DIR_STORAGE', '/home/rcaction/public_html/racevta.com/store/storage/');

Code: Select all

define('DIR_STORAGE', DIR_SYSTEM . 'storage/');

Active Member

Posts

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

Post by RaceVTA » Sat Mar 13, 2021 1:50 am

mikeinterserv wrote:
Sat Mar 13, 2021 12:01 am
Well that looks correct if that's where your storage folder is :-)

Try this
Replace

Code: Select all

define('DIR_STORAGE', '/home/rcaction/public_html/racevta.com/store/storage/');

Code: Select all

define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
That worked, thanks !!!

Seems to be working now, some of my extensions are not working so back to work ...

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

Post by RaceVTA » Sat Mar 13, 2021 2:14 am

extensions now working, only thing left is to sort out the email, still sending this :
You have received an order.Order ID:557Date Added:03/12/2021Order Status:PendingProducts1xCOLT Chevy 1968 CAMARO 200mm (M2340)$36.99TotalsSub-Total:$36.99Pickup From Store:$0.00Coupon (ZUZy2003):$-36.62FL Sales TAX:$0.03Total:$0.40

instead of this:
You have received an order.

Order ID: 549
Date Added: 03/04/2021
Order Status: Pending

Products

1x 3RACING Front Suspension Arms (SAK-U101) $6.99
2x 3RACING Plastic Solid Axle Spool (SAK-D134) $21.98
1x 3RACING Front Suspension Arms Advance 2K18 (SAK-A524) $4.99
1x 3RACING Wheel Adaptor Hex 5mm Thick - Black (SAK-U329/BK) $10.99
1x 3RACING Aluminium Gear Adaptor 20M (SAK-A551) $15.99

Totals

Sub-Total: $60.94
FLAT RATE : $2.99
FL Sales TAX: $4.48
Total: $68.41

New member

Posts

Joined
Fri Apr 27, 2018 11:42 pm

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

What version of OC
A lot of people like the full html email same as customer gets instead of order alert which is rubbish anyway.
I have an OCMod for it if you want to try it
Last edited by mikeinterserv on Sat Mar 13, 2021 2:23 am, edited 1 time in total.

Active Member

Posts

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

Post by RaceVTA » Sat Mar 13, 2021 2:23 am

Version 3.0.2.0
just changed to new server so everything should work the same

order 549 prior to move, order 557 after
Last edited by RaceVTA on Sat Mar 13, 2021 2:24 am, edited 1 time in total.

New member

Posts

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

Users browsing this forum: No registered users and 217 guests