X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Cannot save file: please check write permissions (https://forum.x-cart.com/showthread.php?t=17669)

hotdolpinqueen69 11-01-2005 10:24 AM

Cannot save file: please check write permissions
 
Greetings



I have been racking my brains on how to make static pages for a while. The page i want to creat is for LINKS.

I keep getting the error " cannot save file: please check write permissions.



Please help
Diana
X-Cart version 4.0.12

balinor 11-01-2005 10:27 AM

Make sure your pages/US folder exists and has write permissions.

Tim777 12-05-2005 03:43 PM

hello,

I can save .html files, but I need to save .php files. I get the same error "Cannot save file: please check the write permissions."

what could be the reason?

thanks.

balinor 12-05-2005 03:57 PM

The files you are saving need to have write permissions.

Tim777 12-05-2005 04:18 PM

Quote:

Originally Posted by balinor
The files you are saving need to have write permissions.


permissons are fine there. I can create .html, .htm, etc.. pages without problems.

But when i try to create .php it gives the error. I also tried to create .exe page - the same error.

Could it be some security setting in the script which prohibit creating .php files?

yuehan 12-06-2005 08:55 AM

Quote:

Originally Posted by Tim777
Quote:

Originally Posted by balinor
The files you are saving need to have write permissions.


permissons are fine there. I can create .html, .htm, etc.. pages without problems.

But when i try to create .php it gives the error. I also tried to create .exe page - the same error.

Could it be some security setting in the script which prohibit creating .php files?


From what application are you trying to create these files?
When you create the .html, etc. pages, is this in the exact same directory where you are unable to create php?
What is the path to the directory where you are trying to create these files?
What are the permissions for the directory in which you are trying to create these files?

Tim777 12-06-2005 11:21 AM

I'm trying to create pages in x-Cart "static pages" menu.
application: pages.php?level=E&pageid=

the pages are created in this folder with permissons 777:
public_html/skin1/pages/US/

if i use file name 'page_006.html", then it works,
but if I put "page_006.php" then it gives the error "Cannot save file: please check the write permissions."

The error is returned when this line is executed in pages.php:
$fd = @func_fopen($pages_dir.$filename, "w", true)

For some reason it works with any file name except .php or .exe.
I'm wondering if this is "func_fopen" restriction or some server settings.

yuehan 12-06-2005 02:07 PM

Under config - security there is a list of disallowed file extensions. This list is checked when you try to create a static page. php, php3, com, bat, etc. are in this list.

You could probably edit this, but I would be very careful, because not knowing details of how X-Cart works, changing this could result in security vulnerabilities. If you change it, you should probably change it back as soon as you're done creating your file.

Now this is the STATIC page menu, and a php file implies that it's not a static page, right? (I'm sure you have a good reason, I'm just wondering.)

Oh yeah, about the write permissions error. That's just a default error message; they don't actually check to see what caused the error.

Good Luck.

timtrott 06-08-2012 10:49 AM

Re: Cannot save file: please check write permissions
 
In the version I have (4.4.5) there is no "skin1" and there is no skin/pages directory. The error message gives no clue as to WHICH write permissions are not correct. It would be poor security and asking for trouble to make everything 777. I keep adding/pages/US directories all over the place and it still comes back the same thing.


All times are GMT -8. The time now is 06:42 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.