ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Site Suddenly broken

September 14, 2011 2:23pm

Subscribe [4]
  • #1 / Sep 14, 2011 2:23pm

    Jesus Freak

    12 posts

    Hello all,
      Our site was almost ready to be launched at http://www.sanctuarypittsburgh.org. However, I just needed to put in fancy box in order to put up some art slide shows. When I first put the javascripts in the header, I must have done something wrong, because the page footers stopped displaying properly. SO I deleted it from the header, but the problem remains! I cannot figure out why. Please let me know what code you need to help solve this. Thanks.

  • #2 / Sep 15, 2011 12:40am

    Dan Decker

    7338 posts

    Hello Jesus Freak,

    First, let’s try making sure all your caches are clear. Clear your browser cache and also in EE, Tools-> Data-> Clear Caching: All caches and click “Submit”

    Let us know if you need further assistance.

    Cheers,

  • #3 / Sep 15, 2011 9:09am

    Jesus Freak

    12 posts

    Yes. I did all that and tried it from several computers and/or browsers. All with the same result.

  • #4 / Sep 16, 2011 12:06am

    Dan Decker

    7338 posts

    Jesus Freak,

    Alight then, can you post examples of your affected template code? That way we can get a clear picture of what might be happening.

    Cheers,

  • #5 / Sep 20, 2011 4:54pm

    Jesus Freak

    12 posts

    I am new to this, but I just looked in my FTP program for the files involved. Tha6t way I could just zip them all up to you. However, all I found were the files for the base template, not the ones I added. However, they are in the database and come up when I go through the control panel. Is this normal?
    Anyway, I have attached a zip file with txt files of what I think are the important elements of the site. It was in the global header that I first started trynig to put in the code for fancybox at the end of the head section. It did not work, so I deleted it, but the site still looks like it did when I first put the code in. The footer is just all messed up. Thanks

  • #6 / Sep 20, 2011 6:20pm

    erier

    55 posts

    There seem to be a few syntax errors that could be causing the issue. If you take a look at your page http://www.sanctuarypittsburgh.org/ in the W3C validator (W3C Validation for this page you’ll notice that there are some:

    </if>

    tags where there should probably be some

    </li>

    tags.

    Hopefully that fixes some issues.

  • #7 / Sep 20, 2011 6:30pm

    Jesus Freak

    12 posts

    Hmmm…. Here’s the code for that section. It looks like it is properly formated. COuld there be something in another element throwing it off?

    
    
    

     

    There seem to be a few syntax errors that could be causing the issue. If you take a look at your page http://www.sanctuarypittsburgh.org/ in the W3C validator (W3C Validation for this page you’ll notice that there are some:

    </if>

    tags where there should probably be some

    </li>

    tags.

    Hopefully that fixes some issues.

  • #8 / Sep 20, 2011 6:37pm

    erier

    55 posts

    The culprit may be your IF statement.

    You said:

    {if blog_image}

    What the system might be thinking is: ‘If blog image WHAT?’.

    If you’re simply telling it ‘If the blog image exists ...’, do this:

    {if blog_image != ""}

    ... which is saying: ‘if blog image does NOT equal nothing’

    Hope this helps ...

  • #9 / Sep 21, 2011 1:15pm

    Mark Bowen

    12637 posts

    Hi Jesus Freak,

    Could you try the code that Fat Free Interactive has posted above please? Thanks for the help there FFC.

    I’m not entirely sure this is what the problem will be but it doesn’t harm to try. It has been in the past that {if blog_image} has worked but it’s never been the recommended way of doing a conditional like that and what FFC posted above is definitely the better way to go there.

    If you could give that a try though please.

    That said if it doesn’t fix your issues here then I would say that it would be best to maybe try and do all of this on a new template and literally only place on the template what you need in order for this to work.

    Thanks,

    Mark

  • #10 / Sep 21, 2011 1:19pm

    Mark Bowen

    12637 posts

    Update to last post I made.

    Sorry I hadn’t seen your Web Files.zip that you had uploaded previously and looking at those it seems as though your site footer is back again now.

    Could you confirm whether you are still having troubles with this or not?

    Thanks,

    Mark

  • #11 / Oct 03, 2011 3:28pm

    Jesus Freak

    12 posts

    Yes! It is back. for some reason, I didn’t get emailed that there were more comments on this case. Anyway, I suspected it was something I had spaced out on, and it was!! I made a change in one of the widgets at the same time, and it resulted in the widget erroring out everything that came after it was inserted. Thanks for everyone’s help!

  • #12 / Oct 04, 2011 11:21pm

    Dan Decker

    7338 posts

    Jesus Freak,

    Glad to see that everything got sorted out! If you need help in the future, let us know by starting a new thread.

    Cheers!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases