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

File_edit error

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-22-2008, 12:59 AM
 
buddy buddy is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 97
 

Default File_edit error

Hi,
i'm trying to modify /customer/categories.tpl

inserting a form in html but when i try to save i have this error: Forbidden
You don't have permission to access /eshop/admin/file_edit.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


If i insert a simple text i have no error.

Why that?

Thank you for your help
__________________
Buddy

X-Cart DB Version: 4.4.2 GOLD
Reply With Quote
  #2  
Old 02-22-2008, 01:11 AM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default Re: File_edit error

make sure that categories.tpl has writable permissions.
Reply With Quote
  #3  
Old 02-22-2008, 01:24 AM
 
buddy buddy is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 97
 

Default Re: File_edit error

categories.tpl has 666 permission.

If i try to insert a simple text it works, but if i try to edit the file with a form it doesn't
__________________
Buddy

X-Cart DB Version: 4.4.2 GOLD
Reply With Quote
  #4  
Old 02-22-2008, 01:25 AM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default Re: File_edit error

post the code you are trying to add to look at
Reply With Quote
  #5  
Old 02-22-2008, 01:29 AM
 
buddy buddy is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 97
 

Default Re: File_edit error

Here's the code:

<table width="115" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="115" background="img/tracking.gif">
<div align="CENTER">
<form action=http://domain.com/vas/sped_det_show.hsm method=get name="main" onSubmit="tracking()" target="pop">
<table width="96" border="0" cellpadding="0" cellspacing="0" align="center" onSubmit="tracking()" target="pop">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<div align="CENTER">
<input type="text" name="Nspediz" size="10">
<input type=hidden
value=sped_numspe_par.htm name=referer>
</div>
</td>
</tr>
<tr>
<td>
<div align="CENTER">
<input type="image" border="0" name="search" src="img/go.gif" width="29" height="15" align="middle" alt="Go">
</div>
</td>
</tr>
</table>
</form>
</div>
</td>
</tr>
</table>

Thank you
__________________
Buddy

X-Cart DB Version: 4.4.2 GOLD
Reply With Quote
  #6  
Old 02-22-2008, 01:36 AM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default Re: File_edit error

nothing seems to be wrong. Have you tried uploading file via FTP?
Reply With Quote
  #7  
Old 02-22-2008, 01:39 AM
 
buddy buddy is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 97
 

Default Re: File_edit error

Via ftp is ok. It's really strange!

Thanks!
__________________
Buddy

X-Cart DB Version: 4.4.2 GOLD
Reply With Quote
  #8  
Old 02-22-2008, 01:40 AM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default Re: File_edit error

then, try the file permission with 755
Reply With Quote
  #9  
Old 02-22-2008, 01:45 AM
 
buddy buddy is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 97
 

Default Re: File_edit error

Just another question:

i have to add a js file (code for a pop up).

Where i can do it? Which file?

Thanks again
__________________
Buddy

X-Cart DB Version: 4.4.2 GOLD
Reply With Quote
  #10  
Old 02-22-2008, 03:46 AM
  Holub's Avatar 
Holub Holub is offline
 

X-Adept
  
Join Date: Jan 2008
Posts: 432
 

Default Re: File_edit error

Quote:
Originally Posted by buddy
i have to add a js file (code for a pop up).

Where i can do it? Which file?

You should include this code to meta.tpl, /customer/home.tpl (only for customer area), head.tpl(only for customer area)

{include file="main/include_js.tpl" src="YOUR_JS_FILE.js"}

Don't write path to your js file, only filename. JS file should be placed to skin directory.
__________________
Regards,
Anthony Holub

X-Cart Skins Store
- twenty two different skins available;
- both 4.1.x and 4.2.x versions compatible;
- refresh you store now!

Smart menu X-Cart add-on
Featured Products Slide Show X-Cart add-on
"What's New?" FREE X-Cart add-on
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 12:00 PM.

   

 
X-Cart forums © 2001-2020