Post by MrSDTs » Mon Oct 19, 2020 7:06 am

Hi
I have 2 problems with my shop and i guess this 2 problems kinda related.
first is I've added Downloads and added product, and now when i buy my product (for test with zero price) my downloads are empty and my orders history are empty and product availability is not reducing (by the way i get successful purchase).

the second problem is my error logs, and i don't know what to do.

the codes are a lot i will attach it.

Newbie

Posts

Joined
Mon Oct 19, 2020 7:00 am

Post by OSWorX » Mon Oct 19, 2020 2:33 pm

MrSDTs wrote:
Mon Oct 19, 2020 7:06 am
.. I have 2 problems ..
We here too!

Just writing that you have 2 problems is really not enough.
Which OpenCart Version are you using?
Which additional Extension have you installed and in use?

Just 2 questions you have to provide with answer before anyone is able to give an answer.

Next, read your error.log and you will see clearly what cause these errors (warnings).

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by paulfeakins » Mon Oct 19, 2020 7:06 pm

Code: Select all

PHP Warning:  mkdir(): Permission denied in /home/mrsdts/public_html/shop/admin/controller/common/security.php on line 94
Make sure all files are 644 and all folders are 755 and are owned by the correct user.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by MrSDTs » Mon Oct 19, 2020 10:11 pm

OSWorX wrote:
Mon Oct 19, 2020 2:33 pm
MrSDTs wrote:
Mon Oct 19, 2020 7:06 am
.. I have 2 problems ..
We here too!

Just writing that you have 2 problems is really not enough.
Which OpenCart Version are you using?
Which additional Extension have you installed and in use?

Just 2 questions you have to provide with answer before anyone is able to give an answer.

Next, read your error.log and you will see clearly what cause these errors (warnings).
Oh sorry for that i must forgot to mention those,
I'm using version 3.0.2 and i didn't install any Extensions, everything is default

for errors i know what it is but i don't know how to fix it

Newbie

Posts

Joined
Mon Oct 19, 2020 7:00 am

Post by OSWorX » Mon Oct 19, 2020 10:11 pm

And (!) contact the developer if this Extension (your are using), because
controller/common/security.php
is not a standard file of OpenCart.!

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by MrSDTs » Mon Oct 19, 2020 10:16 pm

paulfeakins wrote:
Mon Oct 19, 2020 7:06 pm

Code: Select all

PHP Warning:  mkdir(): Permission denied in /home/mrsdts/public_html/shop/admin/controller/common/security.php on line 94
Make sure all files are 644 and all folders are 755 and are owned by the correct user.
All permissions are good i checked all of them, in another line it said no such file or directory but security.php exist

Newbie

Posts

Joined
Mon Oct 19, 2020 7:00 am

Post by MrSDTs » Mon Oct 19, 2020 10:17 pm

OSWorX wrote:
Mon Oct 19, 2020 10:11 pm
And (!) contact the developer if this Extension (your are using), because
controller/common/security.php
is not a standard file of OpenCart.!
I've downloaded in Persian language in Persian website, let me download from opencart.com and see what is wrong

Newbie

Posts

Joined
Mon Oct 19, 2020 7:00 am

Post by xxvirusxx » Mon Oct 19, 2020 10:21 pm

OSWorX wrote:
Mon Oct 19, 2020 10:11 pm
And (!) contact the developer if this Extension (your are using), because
controller/common/security.php
is not a standard file of OpenCart.!
It is.
Is the controller that display a modal popup if storage folder was no moved outside of public_html.

Better move storage manually if auto doesn't work.
Line 94 is this

Code: Select all

	mkdir($path . $directory, 0777);

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by MrSDTs » Mon Oct 19, 2020 10:31 pm

xxvirusxx wrote:
Mon Oct 19, 2020 10:21 pm
OSWorX wrote:
Mon Oct 19, 2020 10:11 pm
And (!) contact the developer if this Extension (your are using), because
controller/common/security.php
is not a standard file of OpenCart.!
It is.
Is the controller that display a modal popup if storage folder was no moved outside of public_html.

Better move storage manually if auto doesn't work.
Line 94 is this

Code: Select all

	mkdir($path . $directory, 0777);
Storage directory is out of public_html but error is still there, i checked the code but still i don't know what to do

Newbie

Posts

Joined
Mon Oct 19, 2020 7:00 am

Post by MrSDTs » Mon Oct 19, 2020 11:11 pm

error logs are ok now but still when i buy a downloadable product my order history and downloads are empty and i can't download the product

Newbie

Posts

Joined
Mon Oct 19, 2020 7:00 am

Post by OSWorX » Mon Oct 19, 2020 11:12 pm

xxvirusxx wrote:
Mon Oct 19, 2020 10:21 pm
OSWorX wrote:
Mon Oct 19, 2020 10:11 pm
And (!) contact the developer if this Extension (your are using), because
controller/common/security.php
is not a standard file of OpenCart.!
It is.
Is the controller that display a modal popup if storage folder was no moved outside of public_html.
Sorry, you are right.
This file was introduced with the fixed package 3.0.3.1.
One more reason to post always the used OpenCart Version in the 1st post!

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by IP_CAM » Mon Oct 19, 2020 11:24 pm

Sorry, deleted, I got mixed up, the Version shown was not yours ... O0

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by MrSDTs » Mon Oct 19, 2020 11:29 pm

Ok so i fixed the problem and i will tell you so everyone has this problem can fix it in later days...

first for error logs that was my bad, everything was great and error logs was for first time setup and auto move that didn't worked and in both config.php and /admin/config.php i needed to add path to storage directory.

next one order registration failure that is i needed to go on payments > free checkout and change the status to complete, now everything is working fine.

thanks a lot to everyone that participated in this topic.

Newbie

Posts

Joined
Mon Oct 19, 2020 7:00 am
Who is online

Users browsing this forum: No registered users and 183 guests