Post by DesignCart » Sat Mar 02, 2019 12:21 am

Hello
I've just written modifications for the latest version of OC 3.0.3.1 and I'm moving on to the installation. An error occurs during installation:

The directory catalog/controller/common is not allowed to be written to!

The modified file is catalog/controller/common/footer.php
I'm working on XAMPP on Windows 10.

Someone knows how to solve the problem?

my website: Tworzenie sklepu internetowego


User avatar
Active Member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin

Post by DesignCart » Sat Mar 02, 2019 12:37 am

Welcome again.
I have just found a solution.

You need to edit the file: admin/controller/marketplace/install.php

find a line

Code: Select all

$allowed = array(
and add a path to the array:
'catalog/controller/common/'

I think it's a bad Opencart construction. This means that end users of Opencart need to edit the system files to install modifications. This is wrong solution.

It would make sense if the path admin/controller/marketplace/ was already on the list.
Then it would be enough to include the editing of the /controller/marketplace/install.php file in the modification and adding the necessary paths.

my website: Tworzenie sklepu internetowego


User avatar
Active Member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin

User avatar
Expert Member

Posts

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

Post by DesignCart » Sat Mar 02, 2019 12:49 am

Such a ready-made enlargement will certainly make things easier. Nevertheless, the installation of extensions requires the installation of other extensions. That's the wrong way to go. Opencart takes a step backwards.

my website: Tworzenie sklepu internetowego


User avatar
Active Member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin

Post by IP_CAM » Sat Mar 02, 2019 8:34 am

Opencart takes a step backwards.
In contrary, OC is still on it's way forward, it's just not there yet.
But that's not an OC Problem, more one of those, jumping onto
driving trains. One can get hurt, by doing such, like in real life too,
if one is not a Pro in such ... :-*
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + 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 michael2820 » Sat Sep 14, 2024 6:21 pm

DesignCart wrote:
Sat Mar 02, 2019 12:37 am
I have just found a solution.
You need to edit the file: admin/controller/marketplace/install.php
find a line

Code: Select all

$allowed = array(
and add a path to the array:
'catalog/controller/common/'
With this done, I get error trying to upload ext from Neuhoff import/export v 4.17

--- please reply only with verified data, that is: no 'I think', 'maybe' etc. ---


User avatar
Active Member

Posts

Joined
Sun May 15, 2011 8:16 pm
Location - Denmark OC 2102

Post by JNeuhoff » Sat Sep 14, 2024 8:32 pm

Just to clarify: The Export/Import tool doesn't touch the catalog/controller/common .

Also, a 3rd party extension for OpenCart 3 should not write files into this folder. Contact the extension author if it tries to do that, and ask them to fix the extension to comply with OpenCart standards.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by michael2820 » Sat Sep 14, 2024 9:18 pm

Neuhoff: why is there no Like button like facebook ;)

--- please reply only with verified data, that is: no 'I think', 'maybe' etc. ---


User avatar
Active Member

Posts

Joined
Sun May 15, 2011 8:16 pm
Location - Denmark OC 2102

Post by paulfeakins » Mon Sep 16, 2024 7:05 pm

DesignCart wrote:
Sat Mar 02, 2019 12:37 am
I have just found a solution.
So could you add [SOLVED] to the start of this topic title?

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

Users browsing this forum: No registered users and 21 guests