Jump to content

open_basedir - prestashop [SOLVED]


jacekl

Recommended Posts

Hi guys&girls ^^ i find other topic to my problem, but nothing work.

 

I have a strange problem, and so the system logs showing me a this line.

[Tue Oct 25 15:55:32.554510 2016] [:error] [pid 16957] [client 0.0.0.0:52413] PHP Warning: include_once(): open_basedir restriction in effect. File(/var/hostdata/userx/public_html/shop_domaintld_plinit.php) is not within the allowed path(s): 

.. and tell me why is 

File(/var/hostdata/userx/public_html/shop_domaintld_plinit.php) 

why not is: 

File(/var/hostdata/userx/public_html/shop_domaintld_pl/init.php)

prestashop_base_url.png

httpd-vhosts.conf
# DOMAIN: shop.domaintld.pl
<virtualhost *:80>
ServerName shop.domaintld.pl
ServerAlias www.shop.domaintld.pl
ServerAdmin [email protected]
DocumentRoot "/var/hostdata/userx/public_html/shop_domaintld_pl"
php_admin_value open_basedir "/var/hostdata/userx/public_html/shop_domaintld_pl:/var/temp/"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate$
ErrorLog "/var/logs/domains/userx/shop.domaintld.pl-error.log"
CustomLog "/var/logs/domains/userx/shop.domaintld.pl-access.log" combined
<Directory "/var/hostdata/userx/public_html/shop_domaintld_pl">
 Options +FollowSymLinks -Indexes
 AllowOverride All
 Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
ErrorDocument 510 /_errorpages/510.html
ErrorDocument 403 /_errorpages/403.html
ErrorDocument 404 /_errorpages/404.html
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
# Custom Global Settings (if any exist)

# Custom VH settings (if any exist)

</virtualhost>
# END DOMAIN: shop.domaintld.pl
################################################################

 

w00t! w00t!??

Everything look fine... 
but where is problem?

Edited by jacekl (see edit history)
Link to comment
Share on other sites

You need to find the include_once line causing that error and change init.php to /init.php. The error message doesn't say where it is though. I have read recently that there's a bug in the PayPal module that causes this error, so look in that module for any ajax.php files with that line.

  • Like 1
Link to comment
Share on other sites

You need to find the include_once line causing that error and change init.php to /init.php. The error message doesn't say where it is though. I have read recently that there's a bug in the PayPal module that causes this error, so look for that modules and any ajax.php files for that line.

Thanks for answer, i try fix, when fix i write what was wrong.

Edited by jacekl (see edit history)
Link to comment
Share on other sites

You need to find the include_once line causing that error and change init.php to /init.php. The error message doesn't say where it is though. I have read recently that there's a bug in the PayPal module that causes this error, so look in that module for any ajax.php files with that line.

 

Yap paypall modules in:

modules/paypal/express_checkout/ajax.php

Just need to change 'init.php' to '/init.php'; 

include_once _PS_ROOT_DIR_.'/init.php';
Thanks! Solved!
Edited by jacekl (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...