| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Cannot save file: please check write permissions | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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 |
|||||||
#2
|
|||||||
|
|||||||
Make sure your pages/US folder exists and has write permissions.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
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. |
|||||||
#4
|
|||||||
|
|||||||
The files you are saving need to have write permissions.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
Quote:
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? |
|||||||
#6
|
|||||||
|
|||||||
Quote:
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?
__________________
John -- USA X-Cart Gold 4.3.2 Linux CentOS 5 Apache 2.2.15 PHP 5.2.13 MySQL 5.0.91 |
|||||||
#7
|
|||||||
|
|||||||
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. |
|||||||
#8
|
|||||||
|
|||||||
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.
__________________
John -- USA X-Cart Gold 4.3.2 Linux CentOS 5 Apache 2.2.15 PHP 5.2.13 MySQL 5.0.91 |
|||||||
#9
|
|||||||
|
|||||||
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.
__________________
3.4.15 |
|||||||
|
|||
X-Cart forums © 2001-2020
|