Post by wallaceberg » Thu Jun 13, 2019 4:07 pm

Dear All, Please help! I have installed a SSL certificate to my shop, and changed the .htaccess file with what my hosting company has provided, and also changed the root config and the admin config files with what I found on the forum here. The website functions, but now I cant get to my admin page.
All i get is a load of errors, such as:

Warning: fopen(/var/www/web/catalog/view/theme//stylesheet/bootstrap.css): failed to open stream: No such file or directory in /var/www/web/catalog/controller/startup/sass.php on line 14Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/web/catalog/controller/startup/sass.php on line 16Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/web/catalog/controller/startup/sass.php on line 18Warning: fflush() expects parameter 1 to be resource, boolean given in /var/www/web/catalog/controller/startup/sass.php on line 20Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/web/catalog/controller/startup/sass.php on line 22Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/web/catalog/controller/startup/sass.php on line 24

could anyone help me and let me know what I have done wrong?

Would really appreciate any help at all
thanks in advance
Mark

Newbie

Posts

Joined
Thu Jun 13, 2019 3:14 am

Post by ocmta » Thu Jun 13, 2019 4:15 pm

Looks like your admin/config.php is messed up. Make sure that DIR_APPLICATION, HTTP_SERVER and HTTPS_SERVER point to admin in admin/config.php .

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by wallaceberg » Thu Jun 13, 2019 4:58 pm

Dear ocmta

Many many thanks for your swift reply - under is my admin/config.php code

does this look right? I copied the code and replaced www.example.com with my website, but now I am a bit confused. Your help is most appreciated....

<?php

// HTTP
define('HTTP_SERVER', 'http://www.wallace-berg.com/admin/');
define('HTTP_CATALOG', 'http://www.wallace-berg.com/');
define('HTTP_IMAGE', 'http://www.wallace-berg.com/image/');
// HTTPS
define('HTTPS_SERVER', 'https://www.wallace-berg.com/admin/');
define('HTTPS_CATALOG', 'https://www.wallace-berg.com/');
define('HTTPS_IMAGE', 'https://www.wallace-berg.com/image/');

// DIR
define('DIR_APPLICATION', '/var/www/web/catalog/');
define('DIR_SYSTEM', '/var/www/web/system/');
define('DIR_IMAGE', '/var/www/web/image/');
define('DIR_STORAGE', '/var/www/storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
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/');

(I left the DB stuff out as it has my passwords etc for my database)

Many thanks in advance

Mark

Newbie

Posts

Joined
Thu Jun 13, 2019 3:14 am

Post by ocmta » Thu Jun 13, 2019 5:09 pm

No, it's not right. DIR_APPLICATION is wrong, DIR_CATALOG is missing, and HTTP_IMAGE shouldn't be there. It's supposed to be this:

Code: Select all

<?php

// HTTP
define('HTTP_SERVER', 'http://www.wallace-berg.com/admin/');
define('HTTP_CATALOG', 'http://www.wallace-berg.com/');
// HTTPS
define('HTTPS_SERVER', 'https://www.wallace-berg.com/admin/');
define('HTTPS_CATALOG', 'https://www.wallace-berg.com/');

// DIR
define('DIR_APPLICATION', '/var/www/web/admin/');
define('DIR_SYSTEM', '/var/www/web/system/');
define('DIR_IMAGE', '/var/www/web/image/');
define('DIR_STORAGE', '/var/www/storage/');
define('DIR_CATALOG', '/var/www/web/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
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/');

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by wallaceberg » Thu Jun 13, 2019 5:18 pm

Thanks again for the quick reply-

I have replaced the admin/config.php with what you posted above (and included the database stuff!) - now all i get is a HTTP error 500 - and "this page isnt working"

ahh - dont know what to do without your help -

Mark

Newbie

Posts

Joined
Thu Jun 13, 2019 3:14 am

Post by thekrotek » Thu Jun 13, 2019 5:26 pm

Why did you duplicate your topic? You already have replies in your yesterday's topic, wasn't necessary to create the same one today.

NEVER create duplicates in the future.

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 wallaceberg » Thu Jun 13, 2019 5:32 pm

My sincere apologies- new to the forum - i recieved a message saying that my post from yesterrday had to be reviewed before it would be posted and i didnt recieve anything saying it was ok - i thought that my internet had dropped off in the meantime and my original (yesterdays post) had not actually gone through -

apologies again and sorry for the duplicate.

If anyone can still help with the HTTP500 error i would really appreciate it. Many thanks

Newbie

Posts

Joined
Thu Jun 13, 2019 3:14 am

Post by ocmta » Thu Jun 13, 2019 5:36 pm

What i posted is correct. But is "/var/www/web/" actual path or some example too? Can be wrong permission or some other error in admin/config.php or something, impossible to say having information you provided.

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by ocmta » Thu Jun 13, 2019 5:40 pm

Also try replacing this line:

Code: Select all

define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
with this line:

Code: Select all

define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by wallaceberg » Thu Jun 13, 2019 5:44 pm

Hi - I think the "/var/www/web/" is correct, but what would be the way of checking this?
I also changed the .htaccess file, which might be causing the problem

This is what I added to the .htaccess file - provided by my hosting company:

RewriteEngine On
# http -> https
RewriteCond %{HTTPS} !on [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# non-www -> www
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Many thanks for all your help - really appreciate you all taking the time,

mark

Newbie

Posts

Joined
Thu Jun 13, 2019 3:14 am

Post by wallaceberg » Thu Jun 13, 2019 5:51 pm

Dear ocmta -I tried the different line changing from theme to template and it all works - many many thanks for all your help -

I cannot thank you enough....

Mark
:)

Newbie

Posts

Joined
Thu Jun 13, 2019 3:14 am
Who is online

Users browsing this forum: No registered users and 28 guests