Zen Cart Logo
Forums / General Questions / Unable to edit define main page

Unable to edit define main page

Views: 1,460

Results 1 to 8 of 8
28 Jan 2011, 7:10 PM
#1
signify avatar

signify

Zen Follower

Join Date:
Sep 2008
Posts:
92
Plugin Contributions:
0

Unable to edit define main page

Hi All,
I havn't edited my website for a while but i've tried to change some of the text on my main page but when I tried submit the changes and it gives me these error messages, I don't understand what it means can someone help? My website is https://www.signifypromotions.co.uk

Warning: fopen(D:/inetpub/vhosts/signifypromotions.co.uk/httpdocs/includes/languages/english/html_includes/define_main_page.php) [function.fopen]: failed to open stream: Permission denied in D:\inetpub\vhosts\signifypromotions.co.uk\httpdocs\admin\define_pages_editor.php on line 75

Warning: fwrite(): supplied argument is not a valid stream resource in D:\inetpub\vhosts\signifypromotions.co.uk\httpdocs\admin\define_pages_editor.php on line 77

Warning: fclose(): supplied argument is not a valid stream resource in D:\inetpub\vhosts\signifypromotions.co.uk\httpdocs\admin\define_pages_editor.php on line 78

Warning: Cannot modify header information - headers already sent by (output started at D:\inetpub\vhosts\signifypromotions.co.uk\httpdocs\admin\define_pages_editor.php:75) in D:\inetpub\vhosts\signifypromotions.co.uk\httpdocs\admin\includes\functions\general.php on line 21

I appreciate any help.

Thanks

29 Jan 2011, 2:26 AM
#2
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Location:
Des Moines, Iowa USA
Posts:
618
Plugin Contributions:
0

Re: Unable to edit define main page

Are you making your changes via an editor and then upload with the your ftp program?

29 Jan 2011, 9:17 AM
#3
signify avatar

signify

Zen Follower

Join Date:
Sep 2008
Posts:
92
Plugin Contributions:
0

Re: Unable to edit define main page

Thanks for your reply stitchnkitty.

No I am just editing the normal way I used to which is in the admin control panel and going to define pages, that's the way i always used to do it.

Thanks
Taz

29 Jan 2011, 11:27 AM
#4
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Unable to edit define main page

This tutorial may help:

https://www.zen-cart.com/tutorials/index.php?article=87

(**output started at *D:\inetpub\vhosts\signifypromotions.co.uk\httpdocs\admin*define_pages_editor.php :75)

30 Jan 2011, 11:55 AM
#5
signify avatar

signify

Zen Follower

Join Date:
Sep 2008
Posts:
92
Plugin Contributions:
0

Re: Unable to edit define main page

Thank you for the link supplied. I had a look at the solutions. The first solution I don't think applies to me, as there was no spaces at the front of the PHP, hower there was an extra line at the end when I placed my curser and delated the line and saved, the line appeared again so I am guessing it's supposed to be there?

With the second solution i can see consistency's.

The error page reads this:

Warning: fopen(D:/inetpub/vhosts/signifypromotions.co.uk/httpdocs/includes/languages/english/html_includes/define_main_page.php) [function.fopen]: failed to open stream: Permission denied in D:\inetpub\vhosts\signifypromotions.co.uk\httpdocs\admin\define_pages_editor.php on line 75

Warning: fwrite(): supplied argument is not a valid stream resource in D:\inetpub\vhosts\signifypromotions.co.uk\httpdocs\admin\define_pages_editor.php on line 77

Warning: fclose(): supplied argument is not a valid stream resource in D:\inetpub\vhosts\signifypromotions.co.uk\httpdocs\admin\define_pages_editor.php on line 78

Warning: Cannot modify header information - headers already sent by (output started at D:\inetpub\vhosts\signifypromotions.co.uk\httpdocs\admin\define_pages_editor.php:75) in D:\inetpub\vhosts\signifypromotions.co.uk\httpdocs\admin\includes\functions\general.php on line 21

And when I look at the define_pages_editor.php I can see these same text in the lines

Line 75 $new_file = fopen($file, 'w'); (which is shwon in the first error)

Line 77 fwrite($new_file, $file_contents, strlen($file_contents));(shown in the next error)

Line 78 fclose($new_file); (which shows in the third error)

The problem is i don't know what to look for and I couldn't tell what it should read and what it shouldn't. Is there anything I can do.

Thanks
Taz

1 Feb 2011, 11:29 PM
#6
signify avatar

signify

Zen Follower

Join Date:
Sep 2008
Posts:
92
Plugin Contributions:
0

Re: Unable to edit define main page

Anybody able to help?

2 Feb 2011, 12:39 PM
#7
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Unable to edit define main page

Go to your webhosting, and make your includes/languages folder (and the files inside it) writable. This will fix it.

5 Feb 2011, 12:20 AM
#8
signify avatar

signify

Zen Follower

Join Date:
Sep 2008
Posts:
92
Plugin Contributions:
0

Re: Unable to edit define main page

Hi,
My web host company fixed the issue for me. Thanks!

Taz