Page 1 of 1
Modification page shows 403 Forbidden error
Posted: Thu Dec 13, 2018 6:46 am
by Kemo2018
Hello
Why I can't go to modifications page which contain refresh button, every time it shows me " 403 Forbidden nginx/1.14.0", Chmod is 644
this page worked perfectly but since 2 months I can't open it, I'm on a freehost server, I think the server admin didn't ban this page.
also I tried to re-upload the file public_html/admin/controller/marketplace/modification.php, but still shows the 403 error, I also tried a fresh install copy.
I'm using 3.0.2.0 (Arabic codlance)
the page url is like :
http://www.mysite.com/admin/index.php?r ... _token=xyz
please help
Re: Modification page shows 403 Forbidden error
Posted: Thu Dec 13, 2018 4:49 pm
by xxvirusxx
Maybe storage folder doesn't have 0777 permision.
Re: Modification page shows 403 Forbidden error
Posted: Thu Dec 13, 2018 9:24 pm
by Kemo2018
xxvirusxx wrote: ↑Thu Dec 13, 2018 4:49 pm
Maybe storage folder doesn't have 0777 permision.
Yes, I found that storage folder chmod is 0755, so I set it to 0777 but the 403 error still appears on that page.
is there any other solution?
Re: Modification page shows 403 Forbidden error
Posted: Sat Dec 22, 2018 4:38 pm
by OSWorX
One of the must stupid advices in the whole Internet and especially here, is to set permissions on folders to 0777
Why?
Because these permissions opens every door any scriptkiddy and hacker wants!
What are the correct permissions?
Folders: 0755 (or 0750)
Files: 0644 (or 0640)
(or depends on the provider, some of them require that).
Regarding the response code 403 here: I would assume that you are not the owner of that file.
What is that?
Simply read here more about permissions and ownership:
https://nginxlibrary.com/403-forbidden-error/
Re: Modification page shows 403 Forbidden error
Posted: Tue Jan 15, 2019 3:47 am
by Kemo2018
OSWorX wrote: ↑Sat Dec 22, 2018 4:38 pm
One of the must stupid advices in the whole Internet and especially here, is to set permissions on folders to 0777
Why?
Because these permissions opens every door any scriptkiddy and hacker wants!
What are the correct permissions?
Folders: 0755 (or 0750)
Files: 0644 (or 0640)
(or depends on the provider, some of them require that).
Regarding the response code 403 here: I would assume that you are not the owner of that file.
What is that?
Simply read here more about permissions and ownership:
https://nginxlibrary.com/403-forbidden-error/
So, for which file should I check the permissions to solve the modifications page 403 error??
Re: Modification page shows 403 Forbidden error
Posted: Tue Jan 15, 2019 4:18 am
by Kemo2018
Hello,
I've found that my server blocks this path "marketplace/modification", is there any way to rename the modification page in Admin control panel? or run the refresh cash with codes?
I've tried a lot of refresh extensions but failed
Thank you
Re: Modification page shows 403 Forbidden error
Posted: Wed Jan 16, 2019 6:21 pm
by xxvirusxx
OSWorX wrote: ↑Sat Dec 22, 2018 4:38 pm
One of the must stupid advices in the whole Internet and especially here, is to set permissions on folders to 0777
Why?
Because these permissions opens every door any scriptkiddy and hacker wants!
If you see the function....
image,
download,
upload,
cache,
logs,
modification will have 0777 chmod...
Code: Select all
function dir_permissions() {
$dirs = array(
DIR_OPENCART . 'image/',
DIR_OPENCART . 'system/storage/download/',
DIR_OPENCART . 'system/storage/upload/',
DIR_OPENCART . 'system/storage/cache/',
DIR_OPENCART . 'system/storage/logs/',
DIR_OPENCART . 'system/storage/modification/',
);
exec('chmod o+w -R ' . implode(' ', $dirs));
}
And
modification folder does'n mean
all folders as you said...
Re: Modification page shows 403 Forbidden error
Posted: Mon Jan 28, 2019 6:14 am
by Kemo2018
is there any solution please?
Re: Modification page shows 403 Forbidden error
Posted: Mon Jan 28, 2019 11:18 am
by IP_CAM
Re: Modification page shows 403 Forbidden error
Posted: Wed Jan 30, 2019 1:58 am
by Kemo2018
I've installed extension Auto Refresh Modifications Cache, but it also need a manual refresh at first use, and I can't do that, is there any other idea?
Re: Modification page shows 403 Forbidden error
Posted: Wed Jan 30, 2019 9:52 pm
by straightlight
Monitor your error / server access logs with ID: 403. It should provide the source of the issue on how, where and why.
Re: Modification page shows 403 Forbidden error
Posted: Mon Feb 04, 2019 6:22 am
by Kemo2018
I've found the file named modification.twig in this path /public_html/admin/view/template/marketplace/, and I succeed to rename it to another admin page, to "extension.twig", However the modification page shows in the new renamed page but refresh button won't work, it hasn't any hyperlink and just takes me to login admin page, is there any solution to fix the refresh button, modification.twig uploadfiles.io/ypzi8 –
Re: Modification page shows 403 Forbidden error
Posted: Mon Feb 04, 2019 8:56 am
by straightlight
Kemo2018 wrote: ↑Mon Feb 04, 2019 6:22 am
I've found the file named modification.twig in this path /public_html/admin/view/template/marketplace/, and I succeed to rename it to another admin page, to "extension.twig", However the modification page shows in the new renamed page but refresh button won't work, it hasn't any hyperlink and just takes me to login admin page, is there any solution to fix the refresh button, modification.twig uploadfiles.io/ypzi8 –
FAQ:
viewtopic.php?f=176&p=739789#p717782
Re: Modification page shows 403 Forbidden error
Posted: Mon Feb 18, 2019 3:06 pm
by saffamansoor
i have the same issue with contact page, i am using the default theme, solution plz.