Changes in php files do not appear in local site

edited October 2012 in News & Announcements
Hello,

Since yesterday I have a very strange behavior on a local site I am having.

I make changes in php view file but when browsing the site the changes don't appear.

And it happens only in some of the files.

For example, in a simple about us file, I add a word, refresh the page in the browser, the word I have added is not there.

Another example, my header file was calling another view for the menu:
$this->load->view('_blocks/topnav'); //The topnav view: <div id="nav"> <div id="menu"> <ul> <?php if($page_title == "Home"): echo '<li class="selected"><a href="#" class="home">Home</a></li>'; else: echo '<li><a href="' . site_url() . 'home" id="home" class="home">Home</a></li>'; endif; if($page_title == "About Us"): echo '<li class="selected"><a href="#" class="about">About Us</a></li>'; else: echo '<li><a href="' . site_url() . 'aboutus" class="about">About Us</a></li>'; endif; ?> </ul> </div> </div>
I changed it to call the fuelnav like this:
echo fuel_nav(array('container_tag_id' => 'menu', 'item_id_prefix' => 'menu_'));
Refreshing the page in the browser, all the menu style disappeared but the ul didn't get the id menu and the div tags are still in the html:
<div class="menu"> <ul> <li><a href="http://localhost/highlandfuel/main">Home</a></li><li class="sep">|</li><li><a href="http://localhost/highlandfuel/main/about">About Us</a></li><li class="sep">|</li><li><a href="http://localhost/highlandfuel/main/ourcoffees">Our Coffees</a></li><li class="sep">|</li><li><a href="http://localhost/highlandfuel/orderonline">Order Online</a></li><li class="sep">|</li><li><a href="http://localhost/highlandfuel/main/gallery">Gallery</a></li><li class="sep">|</li><li><a href="http://localhost/highlandfuel/contact">Contact Us</a></li> </ul>
The closing tag for the div class="menu" is gone, and although I included only home and aboutus in the nav file I still see all the menu items.

I never saw something like this.

Other files in the site do get updated with changes that I make.

For example, if I add a word in the contact us page, or in the home page and refresh, I see these changes.

Any idea what is going on???

Could it be a file corruption maybe?

Comments

  • edited 5:17AM
    Another thing, I have cleared the cache of the browser, and I have changed the name of the aboutus.php file to aboutusold.php. Yet, calling about us from the browser still gives me the about us page.

    What the....?

    Am I losing my mind?
  • edited 5:17AM
    I changed the whole site folder name, now when I browse, I get the file not found error, so I am defiantly working on the right folder.
  • edited 5:17AM
    Did you clear the cache in the CMS? Those files are stored in the fuel/application/cache folder.
  • edited 5:17AM
    Hi, yes I did.
  • edited 5:17AM
    Are you logged into FUEL when you are reviewing those changes (being logged in will always bypass the cache)? Have you tried it in different browsers too?
  • edited 5:17AM
    I tried logged in and logged out. And I tried firefox, chrome and ie.

    The home page on ie displays the old nav, that's the only difference, which is still a mistery, between them all.

    I also unistalled Firefox and reinstalled it.

    I went and drank coffee, went to sleep, woke up.... same thing lol
  • edited 5:17AM
    OH MY GOD !!!!

    I am such a fool !!!!

    I worked on this site a while ago, and now came back to it and totally forgot I put some of the pages in the admin. So now, I updated them in the code, and of course, the updates did not display since I didn't update in the admin panel..... Updating the about us in the admin panel works...... oh dear.... oh dear...
Sign In or Register to comment.