Post by Gabbo144 » Sun Oct 09, 2022 8:25 pm

Whenever i try to intall opencart (i've already uploaded files) via domain i get this error:


Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/opt/awex-pages:/storage/ssd3/986/19676986) in /storage/ssd3/986/19676986/public_html/shop/system/storage/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 91Twig\Error\LoaderError: The "/" directory does not exist ("/"). in /storage/ssd3/986/19676986/public_html/shop/system/storage/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 92


example: my main index.html file is in the public_html directory. All the files that were in the upload folder (before it was deleted) are in public_html/shop. when i go to mydomain.com/shop i get this error.
What should i do?

Newbie

Posts

Joined
Fri Sep 23, 2022 9:58 pm

Post by ADD Creative » Mon Oct 10, 2022 2:13 am

It would be helpful to post your OpenCart and PHP version.

Your PHP open_basedir setting is restricting access. This may be of help.
viewtopic.php?f=210&t=228527

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Gabbo144 » Mon Oct 10, 2022 3:22 am

ADD Creative wrote:
Mon Oct 10, 2022 2:13 am
It would be helpful to post your OpenCart and PHP version.

Your PHP open_basedir setting is restricting access. This may be of help.
viewtopic.php?f=210&t=228527
soo, i did what this reply says viewtopic.php?f=210&t=228527#p843814
and now, i get a different error:
Error: Class "Twig\Node\Expression\NameExpression" not found in /storage/ssd3/986/19676986/public_html/shop/system/storage/vendor/twig/twig/src/ExpressionParser.php on line 237

PHP: 8.0
OpenCart v4.0.1.1 August 27, 2022

Newbie

Posts

Joined
Fri Sep 23, 2022 9:58 pm

Post by ADD Creative » Mon Oct 10, 2022 4:21 am

Check that you have the file system/storage/vendor/twig/twig/src/Node/Expression/NameExpression.php and it correct.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Gabbo144 » Wed Oct 12, 2022 4:43 am

ADD Creative wrote:
Mon Oct 10, 2022 4:21 am
Check that you have the file system/storage/vendor/twig/twig/src/Node/Expression/NameExpression.php and it correct.
Nope, i have system/storage/vendor/twig/twig/src/node/ and then a list of files:

AutoEscapeNode.php
BlockNode.php
BlockReferenceNode.php
BodyNode.php
CheckSecurityCallNode.php
CheckSecurityNode.php
CheckToStringNode.php
DeprecatedNode.php
DoNode.php
EmbedNode.php
FlushNode.php
ForLoopNode.php
ForNode.php
IfNode.php
ImportNode.php
IncludeNode.php
MacroNode.php
ModuleNode.php
Node.php
NodeCaptureInterface.php
NodeOutputInterface.php
PrintNode.php
SandboxNode.php
SetNode.php
TextNode.php
WithNode.php

Newbie

Posts

Joined
Fri Sep 23, 2022 9:58 pm

Post by ADD Creative » Wed Oct 12, 2022 5:35 am

Upload your files again form a clean install, as you seem to be missing some.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 21 guests