waqasalmas Posted June 30, 2014 Share Posted June 30, 2014 Hello, I have been using prestashop for a while now and it works fine... Yesterday i just tried to add one more currency as i am adding skrill as a payment menthod to my website.. I am getting this error.... Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(C:\Inetpub\vhosts\store181.com\httpdocs/themes/default/modules/blocksearch/C:\Inetpub\vhosts\store181.com\httpdocs/modules/blocksearch/blocksearch-top.tpl) is not within the allowed path(s): (C:/Inetpub/vhosts/store181.com\;C:\windows\Temp\) in C:\Inetpub\vhosts\store181.com\httpdocs\classes\Tools.php on line 1552 I have tried to find a soultion but unable to as yet... Please help its urgent! Link to comment Share on other sites More sharing options...
bellini13 Posted June 30, 2014 Share Posted June 30, 2014 It is trying to open a file located at... C:\Inetpub\vhosts\store181.com\httpdocs/themes/default/modules/blocksearch/C:\Inetpub\vhosts\store181.com\httpdocs/modules/blocksearch/blocksearch-top.tpl If you look more closely, that file path is actually 2 files, I have split them to show you. C:\Inetpub\vhosts\store181.com\httpdocs/themes/default/modules/blocksearch/ C:\Inetpub\vhosts\store181.com\httpdocs/modules/blocksearch/blocksearch-top.tpl But instead of them being separate files, something in your store has merged them into a single file path, which is obviously not a valid file. Therefore your get an error opening the file Link to comment Share on other sites More sharing options...
waqasalmas Posted June 30, 2014 Author Share Posted June 30, 2014 Yeah i got it but i just dont understand how i can get it sorted out! I updated a new currency in my store last night....and i know it is that update that is causing it... Any help on how i can fix it? Link to comment Share on other sites More sharing options...
bellini13 Posted June 30, 2014 Share Posted June 30, 2014 i don't think the currency has anything to do with it, it is just the trigger point. you need to locate what is triggering the the blocksearch and Tools code to be executed, and what is passing this invalid file path Link to comment Share on other sites More sharing options...
waqasalmas Posted June 30, 2014 Author Share Posted June 30, 2014 Precisely, yes! I have been trying to sort it out since morning but no luck as yet. Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(C:\Inetpub\vhosts\store181.com\httpdocs/themes/default/modules/blocksearch/C:\Inetpub\vhosts\store181.com\httpdocs/modules/blocksearch/blocksearch-top.tpl) is not within the allowed path(s): (C:/Inetpub/vhosts/store181.com\;C:\windows\Temp\) in C:\Inetpub\vhosts\store181.com\httpdocs\classes\Tools.php on line 1552 Why am i directed to "C:\Inetpub\vhosts\store181.com\httpdocs\classes\Tools.php on line 1552"??? Means there is some problem in this file? How do i find the exact line number 1552 in the phy file? Any help would be really appreciated! Link to comment Share on other sites More sharing options...
bellini13 Posted June 30, 2014 Share Posted June 30, 2014 it only means that line of code is failing because of the file path it was provided. you need to back trace what is causing this code to execute, and what is passing this invalid file path. Link to comment Share on other sites More sharing options...
waqasalmas Posted June 30, 2014 Author Share Posted June 30, 2014 Pardon my ignorance but how do i do that? I mean how do i find what is causing this code to break even though everything was working fine till yesterday? Link to comment Share on other sites More sharing options...
bellini13 Posted June 30, 2014 Share Posted June 30, 2014 I assume everything continues to work fine, you only encounter this issue when you add a new currency, which I assume you do not do everyday, or perhaps never have done before. I am also going to assume based on your responses so far, that you are not fluent in PHP coding and therefore I would suggest you should hire a professional. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now