Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Cannot save file: please check write permissions

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-01-2005, 10:24 AM
 
hotdolpinqueen69 hotdolpinqueen69 is offline
 

Newbie
  
Join Date: May 2005
Location: U.S.A
Posts: 8
 

Default 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
Reply With Quote
  #2  
Old 11-01-2005, 10:27 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Make sure your pages/US folder exists and has write permissions.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-05-2005, 03:43 PM
 
Tim777 Tim777 is offline
 

Newbie
  
Join Date: Dec 2005
Posts: 3
 

Default

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.
__________________
Version 4.0.17

Outsmart Software | Ann Yvette | Business Plans | eBooks
Reply With Quote
  #4  
Old 12-05-2005, 03:57 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

The files you are saving need to have write permissions.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 12-05-2005, 04:18 PM
 
Tim777 Tim777 is offline
 

Newbie
  
Join Date: Dec 2005
Posts: 3
 

Default

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?
__________________
Version 4.0.17

Outsmart Software | Ann Yvette | Business Plans | eBooks
Reply With Quote
  #6  
Old 12-06-2005, 08:55 AM
 
yuehan yuehan is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 44
 

Default

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?
__________________
John -- USA
X-Cart Gold 4.3.2
Linux CentOS 5
Apache 2.2.15
PHP 5.2.13
MySQL 5.0.91
Reply With Quote
  #7  
Old 12-06-2005, 11:21 AM
 
Tim777 Tim777 is offline
 

Newbie
  
Join Date: Dec 2005
Posts: 3
 

Default

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.
__________________
Version 4.0.17

Outsmart Software | Ann Yvette | Business Plans | eBooks
Reply With Quote
  #8  
Old 12-06-2005, 02:07 PM
 
yuehan yuehan is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 44
 

Default

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
Reply With Quote
  #9  
Old 06-08-2012, 10:49 AM
 
timtrott timtrott is offline
 

Member
  
Join Date: Mar 2003
Posts: 25
 

Default 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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:53 PM.

   

 
X-Cart forums © 2001-2020