Post by alexlii1971 » Mon Oct 19, 2020 7:58 am

sw!tch wrote:
Mon Oct 19, 2020 7:24 am
Thats a permission error. Ensure you have proper permissions on your storage folder.

In general, files should be 644 and folders 755.

Contact your web host if you are unsure.
It is 755, but I set it enough permission: 777, but it is same issue...

http://prntscr.com/v1ybx7


If I disable cache , new issues here:

http://prntscr.com/v1ycor
http://prntscr.com/v1yd1h

By the way, how can I get email notify, I am sure I already checked "Notify me when a reply is posted."

Thanks

Newbie

Posts

Joined
Tue Oct 13, 2020 10:31 pm

Post by sw!tch » Mon Oct 19, 2020 8:05 am

You should not be setting 777 permissions! Contact your web host to help resolve the file folder permission on your account. Could be improper user / group permissions as well.

Double check the storage folder path is correct in your config.php and admin/config.php

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 alexlii1971 » Mon Oct 19, 2020 8:18 am

sw!tch wrote:
Mon Oct 19, 2020 8:05 am
You should not be setting 777 permissions! Contact your web host to help resolve the file folder permission on your account. Could be improper user / group permissions as well.

Double check the storage folder path is correct in your config.php and admin/config.php
config.php in htdocs(DB username and password deleted)



// HTTP
define('HTTP_SERVER', 'https://baiyaner.com/');

// HTTPS
define('HTTPS_SERVER', 'https://baiyaner.com/');

// DIR
define('DIR_APPLICATION', '/var/www/baiyaner.com/htdocs/catalog/');
define('DIR_SYSTEM', '/var/www/baiyaner.com/htdocs/system/');
define('DIR_IMAGE', '/var/www/baiyaner.com/htdocs/image/');
define('DIR_STORAGE', '/var/www/baiyaner.com/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/');

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


Config in admin

<?php
// HTTP
define('HTTP_SERVER', 'https://baiyaner.com/admin/');
define('HTTP_CATALOG', 'https://baiyaner.com/');

// HTTPS
define('HTTPS_SERVER', 'https://baiyaner.com/admin/');
define('HTTPS_CATALOG', 'https://baiyaner.com/');

// DIR
define('DIR_APPLICATION', '/var/www/baiyaner.com/htdocs/admin/');
define('DIR_SYSTEM', '/var/www/baiyaner.com/htdocs/system/');
define('DIR_IMAGE', '/var/www/baiyaner.com/htdocs/image/');
define('DIR_STORAGE', '/var/www/baiyaner.com/storage/');
define('DIR_CATALOG', '/var/www/baiyaner.com/htdocs/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', '');
define('DB_PASSWORD', '');
define('DB_DATABASE', '');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

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



Storage directory is correct: http://prntscr.com/v1ymno




By the way, I think there is also another issue: Invalid token session. Please login again.
Screenshot:

http://prntscr.com/v1ylx9

Thanks

Newbie

Posts

Joined
Tue Oct 13, 2020 10:31 pm

Post by alexlii1971 » Mon Oct 19, 2020 8:28 am

sw!tch wrote:
Mon Oct 19, 2020 8:05 am
You should not be setting 777 permissions! Contact your web host to help resolve the file folder permission on your account. Could be improper user / group permissions as well.

Double check the storage folder path is correct in your config.php and admin/config.php

I am using root user both on linux and FTP account, is that the reason of the issue please?

Thanks

Newbie

Posts

Joined
Tue Oct 13, 2020 10:31 pm

Post by sw!tch » Mon Oct 19, 2020 8:34 am

Possibly, if it's a user account and you are logged in via root. The root user, usually takes permission on uploads, etc.

In which case as I mentioned you need to correct the user/group. If you are not familiar with chown and user / group permissions I suggest you contact your web host or hire a professional.

If you are familiar with bash you can run ls -al to view user/group permissions, some FTP clients can list owner/group as well.

In any-case contact your web host or hire a professional if you are unsure.

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 alexlii1971 » Mon Oct 19, 2020 8:47 am

sw!tch wrote:
Mon Oct 19, 2020 8:34 am
Possibly, if it's a user account and you are logged in via root. The root user, usually takes permission on uploads, etc.

In which case as I mentioned you need to correct the user/group. If you are not familiar with chown and user / group permissions I suggest you contact your web host or hire a professional.
Thanks, my admin user account on opencart was created when opencart was installed, it is not the linux root account. there should be no any related between opencart admin and linux /Ftp root account.

So, the only possible reason is from the user / group permissions?

Thanks

Newbie

Posts

Joined
Tue Oct 13, 2020 10:31 pm

Post by sw!tch » Mon Oct 19, 2020 8:55 am

Best bet is to reach out to your web host to ensure you have proper file, folder and user / group permissions per your account. If you still have issues after that then post back.

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 alexlii1971 » Mon Oct 19, 2020 9:15 am

sw!tch wrote:
Mon Oct 19, 2020 8:55 am
Best bet is to reach out to your web host to ensure you have proper file, folder and user / group permissions per your account. If you still have issues after that then post back.
Thanks so much.

root@ubuntu-s-1vcpu-1gb-ams3-01:~# ls -ld /var/www/baiyaner.com/
drwxr-xr-x 6 www-data www-data 4096 Oct 19 00:40 /var/www/baiyaner.com/

I guess I need add a new user but not root user, right?

Newbie

Posts

Joined
Tue Oct 13, 2020 10:31 pm

Post by alexlii1971 » Mon Oct 19, 2020 11:08 am

sw!tch wrote:
Mon Oct 19, 2020 7:24 am
Thats a permission error. Ensure you have proper permissions on your storage folder.

In general, files should be 644 and folders 755.

Contact your web host if you are unsure.

Thanks.

Ensure that your directory has www-data access will allow upload extention successfully:

Code: Select all

sudo chown -R www-data:www-data /var/www/site

but still there are two issue here:

1#
OpenCart Marketplace API does not save, so Sigunature hash does not match:
it will show
Signature hash does not match!
when install extesion at backend

http://prntscr.com/v20coq

2#
Invalid token session. Please login again.
http://prntscr.com/v20aup

Anyway or possible to fix please?

Thanks

Newbie

Posts

Joined
Tue Oct 13, 2020 10:31 pm

Post by straightlight » Mon Oct 19, 2020 5:19 pm

If you don't have root access or you do have root access and chown is not taking effect on CHMOD, even recursively, the best option would be to contact your host.

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
Who is online

Users browsing this forum: No registered users and 265 guests