After upgrading to 1.6.3 index.php file on site template no longer edittable
Posted: 17 April 2008 09:08 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  36
Joined  03-28-2007

After following the upgrade instructions to a T (as I did when upgraded to 1.6.2) I am no longer able to edit my index.php file. When I’m in the control panel and click on the index page, I see my source code and can actually edit and save it as I please, but when I click on “view renedered template” I see a file that is as if I had never edited. None of my changes show up.

When I bring it down using an FTP program, I see that the changes I made have not be saved or are being saved at perhaps another location?

Please help.

thanks.

Profile
 
 
Posted: 18 April 2008 05:10 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12433
Joined  04-29-2002

los1sol, you ordinarily don’t edit your index.php. You instead edit via the control panel a template that is displayed on your home page.

If you look at your EE back end after clicking on the Templates tab, you should see a list of template groups. One of these groups will have an asterisk next to it. That’s your default template group. Is this the template you are talking about?

Image Attachments
defaulttemplate.jpg
Click thumbnail to see full-size image
 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 18 April 2008 05:15 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  36
Joined  03-28-2007

Yes, this is what I’m talking about. I tried editing it that way and when I click on “view rendered template” I don’t see my changes.

Profile
 
 
Posted: 18 April 2008 09:43 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12433
Joined  04-29-2002

Are you saving your templates as text files? If you are, is the path to the text files still accurate?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 18 April 2008 01:25 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  36
Joined  03-28-2007

I assume I’m saving them as a text file. I just hit “Update” and hope for the best. But yea, it’s just code so I think it’s saving as text. But the path looks a little weird now.

http://www.pawsonpalmer.com/index.php?URL=http://www.pawsonpalmer.com/index.php?/site/index/

Not sure what to make of that.

Profile
 
 
Posted: 18 April 2008 02:02 PM   [ Ignore ]   [ # 5 ]  
Grad Student
Rank
Total Posts:  36
Joined  03-28-2007

The path must be off. Another clue is that the hit counter remains unchanged despite my going directly to http://www.pawsonpalmer.com/index.php
And when I pull down the index.php file via an external FTP program, i can see that the changes I had supposedly made and saved are not there.

Clearly these aren’t being saved correctly but how do I fix this?

Profile
 
 
Posted: 18 April 2008 02:10 PM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15489
Joined  05-15-2004

And when I pull down the index.php file via an external FTP program, i can see that the changes I had supposedly made and saved are not there.

Clearly these aren’t being saved correctly but how do I fix this?

I think there might be some misunderstanding as to the working of EE. As Sue pointed out, the index.php file is never edited directly: rather, it is the core file that EE uses to pull the relevant content from the database. The changes you make to your templates are only visible in the database, but not in any physical files on your server (unless you save your templates also as files, but that is completely optional.)

I suggest the Getting Started guide and the video tutorials to get a good overview over how EE works internally.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 18 April 2008 02:14 PM   [ Ignore ]   [ # 7 ]  
Grad Student
Rank
Total Posts:  36
Joined  03-28-2007

Okay, so I took it another step further and updated the index.php file I downloaded via FTP and sure enough, I see the changes I just made. The problem is I want to be able to update the index file within the Expression Engine template control panel.

It looks like you can’t have it both ways; update it in the control panel and update it by manually uploading an updated file. Is this accurate?

And if so, how do I get it back to where I can update it via the control panel?

My site is pretty undeveloped so if I have to delete my index file and simply create a new one I would. In fact, I tried creating a new template to test this method but I wasn’t able to save anything to that newly-created template either so I think the problem is bigger than that.

Does this make sense?

Profile
 
 
Posted: 18 April 2008 02:17 PM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15489
Joined  05-15-2004

Can you give me the exact URL / path of this index.php you speak of? The one your modified manually, and reuploaded?

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 18 April 2008 02:18 PM   [ Ignore ]   [ # 9 ]  
Grad Student
Rank
Total Posts:  36
Joined  03-28-2007
Ingmar Greil - 18 April 2008 02:10 PM

And when I pull down the index.php file via an external FTP program, i can see that the changes I had supposedly made and saved are not there.

Clearly these aren’t being saved correctly but how do I fix this?

I think there might be some misunderstanding as to the working of EE. As Sue pointed out, the index.php file is never edited directly: rather, it is the core file that EE uses to pull the relevant content from the database. The changes you make to your templates are only visible in the database, but not in any physical files on your server (unless you save your templates also as files, but that is completely optional.)

I suggest the Getting Started guide and the video tutorials to get a good overview over how EE works internally.

Thanks for the tip. I guess I must have replaced the index file with my local copy of the template that I had named index.php at some point, but I don’t remember doing that. And the first time this problem occurred was during the upgrade to 1.6.3 so I find it a strange coincidence.

But regardless of how it happened, how do I go about fixing it now? That’s all i care about.

Profile
 
 
Posted: 18 April 2008 02:18 PM   [ Ignore ]   [ # 10 ]  
Grad Student
Rank
Total Posts:  36
Joined  03-28-2007
Ingmar Greil - 18 April 2008 02:17 PM

Can you give me the exact URL / path of this index.php you speak of? The one your modified manually, and reuploaded?

http://www.pawsonpalmer.com/index.php

Profile
 
 
Posted: 18 April 2008 02:23 PM   [ Ignore ]   [ # 11 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15489
Joined  05-15-2004

Well, that is the central EE file. You don’t want to modify that. If you bring it up in your browser, you are actually calling

http://www.pawsonpalmer.com/index.php?/site/index

“site” is your default template group, and “index” is the default template, and they are all “routed” through index.php, so to speak. The docs explain that very nicely.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 18 April 2008 02:24 PM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15489
Joined  05-15-2004
los1sol - 18 April 2008 02:18 PM

Thanks for the tip. I guess I must have replaced the index file with my local copy of the template that I had named index.php at some point, but I don’t remember doing that. And the first time this problem occurred was during the upgrade to 1.6.3 so I find it a strange coincidence.

Not so strange, you might have easily overwritten index.php at some point.

But regardless of how it happened, how do I go about fixing it now? That’s all i care about.

Re-upload the EE files, but be sure to keep config.php and path.php. All content should be in the database, so you can safely overwrite index.php and similar files.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 18 April 2008 02:24 PM   [ Ignore ]   [ # 13 ]  
Grad Student
Rank
Total Posts:  36
Joined  03-28-2007

Is there any way to get back the original index.php file?

Profile
 
 
Posted: 18 April 2008 02:27 PM   [ Ignore ]   [ # 14 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15489
Joined  05-15-2004

Just re-upload the index.php from your downloaded EE folder.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 18 April 2008 02:28 PM   [ Ignore ]   [ # 15 ]  
Grad Student
Rank
Total Posts:  36
Joined  03-28-2007

Great. Thank you.

Profile
 
 
Posted: 18 April 2008 02:36 PM   [ Ignore ]   [ # 16 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15489
Joined  05-15-2004

Once you have done that, log on to your control panel. There you have a tab “Templates”. The “index” one in the “site” template group is your “homepage”, so to speak. Making sense? Oh, and do give those ressources I mentioned a try. You’ll find them very helpful.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65087 Total Logged-in Users: 32
Total Topics: 82229 Total Anonymous Users: 20
Total Replies: 441929 Total Guests: 199
Total Posts: 524158    
Members ( View Memberlist )