Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Problem with sidebox image

Problem with sidebox image

Views: 2,054

Results 21 to 25 of 25
23 Sep 2011, 8:36 PM
#21
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Problem with sidebox image

What text editor are you using to edit your files? I see that there are different amounts of space at the bottoms of your files. In some cases, a space or blank line after the ?> that ends a PHP file can cause an error. The ?> should be the absolute last thing in the file. PHP files can actually work fine without the closing ?> when there is no HTML after it, so try removing that from the ends of your files. (Many new or modified Zen Cart files do away with the closing ?> .)

23 Sep 2011, 9:10 PM
#22
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: Problem with sidebox image

Hello g,
I am using Crimson editor because it was recommended on this forum.

This is my actions:
use filezilla to download to a "changes" folder
right mouse the file and select edit to open crimson editor
make changes
save
upload to server using filezilla.
turn sidebox on in Admin
refresh the page

I just opened tpl_ebook_sidebox.php in Crimson Editor and notice that line 24 is ?> but there are two blank lines (25 & 26) after this.

The other two files do not have extra lines.

I removed them and uploaded again but still it is the same.

thank you for your patience
Ivanna

24 Sep 2011, 1:27 AM
#23
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Problem with sidebox image

Did you try removing the ?> from the ends of the files?

24 Sep 2011, 1:49 PM
#24
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: Problem with sidebox image

g,
I did try it now. I removed ?> and all spaces back to the last ; but it is still the same.

Today, I will download blank_sidebox one more time and start again. I have little time left and must repair this or find an alternative method. I have a busy weekend :(

I appreciate all the help you have given to me
Ivanna

24 Sep 2011, 9:20 PM
#25
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: Problem with sidebox image

I have downloaded blank_sidebox again and this time it is working :clap:

There is only one difference:
My first intent was to have two such instances and so I followed the instruction to change "replace all instances of blank_sidebox and BLANK_SIDEBOX" Perhaps this became the problem, I don't know.
Because I have no more time I decided to only use one sidebox. I will try more on my next project.

Although this sidebox now works, there is still one anomaly. Now there are two instance of the same sidebox!!!

At first I think perhaps there are two files the same so I check every folder. Then I make a test with the file that I know is good (tpl_blank_sidebox.php) and change some text. It shows up in both instance. So I know it is not two files but one file showing two times.

I have turned one file off in Admin and still it works ok. :clap:

It took a long time to fix and still I do not understand the fault, but it is working now and I am pleased.

Thank you for giving me so much of your time and expertise.

Ivanna