masknight Posted November 3, 2014 Share Posted November 3, 2014 Dear, urgent. I transfer website. But the it is nothing for the payment and modules of the back office. It is report:Warning: scandir() has been disabled for security reasons in /home/wwwroot/aaabbb.com/classes/Module.php on line 345 Warning: Invalid argument supplied for foreach() in /home/wwwroot/aaabbb.com/classes/Module.php on line 346. Would you please tell me how to solve this questions? Thanks. Urgent. Best Wishes, Rocky Link to comment Share on other sites More sharing options...
FullCircles Posted November 4, 2014 Share Posted November 4, 2014 Hi Rocky, Having had a quick search, it appears that scandir is used a fair few times, so it wouldn't be an easy thing to solve.. there'll be more errors throughout the site, than on just that class. I'd advise you to first get in touch with your new hosting company and ask them if scandir can be enabled for your account If they can't, then you'll need to hire someone to write overrides for some of the core classes, with any luck some of the other methods such as readdir will work instead, but there's no guarantee of that either, your hosting might be completely locked out of such things. If it is, then I suspect it's going to struggle running prestashop, you might not be able to manage file uploads or such 1 Link to comment Share on other sites More sharing options...
masknight Posted November 5, 2014 Author Share Posted November 5, 2014 Hi Rocky, Having had a quick search, it appears that scandir is used a fair few times, so it wouldn't be an easy thing to solve.. there'll be more errors throughout the site, than on just that class. I'd advise you to first get in touch with your new hosting company and ask them if scandir can be enabled for your account If they can't, then you'll need to hire someone to write overrides for some of the core classes, with any luck some of the other methods such as readdir will work instead, but there's no guarantee of that either, your hosting might be completely locked out of such things. If it is, then I suspect it's going to struggle running prestashop, you might not be able to manage file uploads or such Dear, I have solve the question,thanks for you. it is useful of your advice. Link to comment Share on other sites More sharing options...
Recommended Posts