3 of 6
3
Live Preview with Coda (and other IDEs)
Posted: 01 May 2007 05:22 AM   [ Ignore ]   [ # 37 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  104
Joined  11-01-2002
Derek Jones - 30 April 2007 06:55 AM

The HTML in your preview isn’t even rendering?  Can you take a screenshot, please?

Yes Sir, right here: http://www.boelskifte.dk/coda_preview_error.png

Could it be something with Apache under MAMP, that needs to be set up to accept .htaccess redirects or something? Or should the .htaccess file for my particular setup be modified somehow, maybe to accept MAMP/Apache running on port 8888 or ... I don’t know, I’m out of my league here smile

Profile
 
 
Posted: 01 May 2007 08:11 AM   [ Ignore ]   [ # 38 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19293
Joined  06-03-2002

I do not use MAMP, so I do not know whether it is configured out of the box to allow .htaccess.  But the window you are showing is accessing the resource with file:// and not http://, so it’s not even going through Apache.  When you configured your site in Coda, did you give it a correct Root URL, and a Remote Root to the public html directory?

 Signature 
Profile
MSG
 
 
Posted: 01 May 2007 12:04 PM   [ Ignore ]   [ # 39 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  760
Joined  09-27-2004

with the code i run in an error 500. ideas?

when i does not use the htaccess file i can see the page, but without css

Profile
 
 
Posted: 01 May 2007 12:10 PM   [ Ignore ]   [ # 40 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19293
Joined  06-03-2002

That is a general server error, from using either incorrect syntax in a .htaccess, or a rule that the server disallows or doesn’t understand.  You may need to speak with your system administrator to sort the problem out, but you can post more details here about where you are using the .htaccess, (and a cut and paste of its full contents) and if there are noticeable errors, someone here might be able to help.

 Signature 
Profile
MSG
 
 
Posted: 01 May 2007 12:19 PM   [ Ignore ]   [ # 41 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  760
Joined  09-27-2004

i use the code in a htaccess file in the template folder on the server

home/templares_safe/weblog/

there i use: RewriteEngine On
RewriteRule ^(.*)\.php$ /index.php/$1 [L,R=301]

but i can not see the css

Profile
 
 
Posted: 01 May 2007 12:24 PM   [ Ignore ]   [ # 42 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19293
Joined  06-03-2002

Have you used .htaccess rewrites on this server successfully before?  Do you have any .htaccess in the web root that could be interfering?  And I’m unclear as to when the preview appears without CSS and when you receive a 500 error.  Ah, I see your screenshot that you added to your post.  That is normal and what you would see when the preview is just looking at the template file.  The point of the .htaccess rewrites is for it to use your actual site for the preview and not just the template file.  If you see that, it means you either have no .htaccess in place, or the rewrite is not occurring.

 Signature 
Profile
MSG
 
 
Posted: 01 May 2007 12:25 PM   [ Ignore ]   [ # 43 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  760
Joined  09-27-2004

the error 500 is away and yes, i use a htaccess to move the index.php in the url and it is working

Profile
 
 
Posted: 01 May 2007 12:27 PM   [ Ignore ]   [ # 44 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19293
Joined  06-03-2002
misu - 01 May 2007 12:25 PM

the error 500 is away and yes, i use a htaccess to move the index.php in the url and it is working

Your .htaccess in your web root could be interfering and causing the 500 errors.  Try removing it entirely and just leaving the .htaccess in your template folder.  Also, post your web root .htaccess file contents here.  Please use a pMcode code block so that all characters are represented without transformation.

 Signature 
Profile
MSG
 
 
Posted: 01 May 2007 12:44 PM   [ Ignore ]   [ # 45 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  760
Joined  09-27-2004

think the server needed a litlle bit time

css renders, but i get a error “file not found” and the url looks not like a real url

the correct path is: ......../home/templates_safe/weblog/index.php

but the url is: http://................../index.php/index

i use:

RewriteEngine On
RewriteRule ^(.*)\.php$ /index.php/$1 [L,R=301]

Profile
 
 
Posted: 01 May 2007 12:50 PM   [ Ignore ]   [ # 46 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19293
Joined  06-03-2002

The URL in the preview address bar should not change unless a redirect (not a rewrite) is occurring.  Please try it after completely removing your .htaccess from your web root, and again, please post its contents here.

 Signature 
Profile
MSG
 
 
Posted: 01 May 2007 12:53 PM   [ Ignore ]   [ # 47 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  760
Joined  09-27-2004

with this all is working

RewriteEngine On
RewriteRule ^(.*)\.php$ /weblog/$1 [L,R=301]

and thxs for your help grin

Profile
 
 
Posted: 03 May 2007 10:37 AM   [ Ignore ]   [ # 48 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  104
Joined  11-01-2002

The 1.0.1 update to Coda, released yesterday, have resolved my MAMP/Coda problems. There is now a “Local URL” field in the Site Setup section, specifically for users who run Coda with a local webserver.

Coda + MAMP + Expression Engine = WOW, so Freakin’ cool smile

Profile
 
 
Posted: 05 May 2007 05:12 AM   [ Ignore ]   [ # 49 ]  
Research Assistant
RankRankRank
Total Posts:  439
Joined  03-23-2004

Just curious. Could there be security implications by 1) saving templates to file into a 777 directory and 2) accessing them via a third party software?

Profile
 
 
Posted: 05 May 2007 09:26 AM   [ Ignore ]   [ # 50 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19293
Joined  06-03-2002
current - 05 May 2007 05:12 AM

Just curious. Could there be security implications by 1) saving templates to file into a 777 directory and 2) accessing them via a third party software?

No more than you’d have by accessing them via an FTP application or web browser, which is what’s really going on behind the scenes here.

 Signature 
Profile
MSG
 
 
Posted: 09 May 2007 10:38 AM   [ Ignore ]   [ # 51 ]  
Research Assistant
RankRankRank
Total Posts:  348
Joined  01-06-2006

Has anyone gotten this to work with Dreamweaver?

Profile
 
 
Posted: 12 May 2007 08:13 AM   [ Ignore ]   [ # 52 ]  
Grad Student
Rank
Total Posts:  36
Joined  03-31-2006

It appears the issue of CSS edits in CODA are being avoided.

Is it possible [in simple terms] to edit EE’s CSS files within the CODA interface?

Profile
 
 
Posted: 12 May 2007 04:16 PM   [ Ignore ]   [ # 53 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19293
Joined  06-03-2002

What issues, dw2?  Save your CSS templates as files, edit in Coda as described.

 Signature 
Profile
MSG
 
 
Posted: 12 May 2007 04:32 PM   [ Ignore ]   [ # 54 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  848
Joined  04-24-2002

I think he means edit them in the CSS Editor pane, not the Text Editor.

 Signature 

chrisruzin.netTextMate EE BundlejEdit EE ModeSolspace
“The greatest barrier to success is the fear of failure.” - Sven Goran Eriksson

Profile
 
 
   
3 of 6
3
 
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 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120612 Total Logged-in Users: 82
Total Topics: 126647 Total Anonymous Users: 43
Total Replies: 665760 Total Guests: 483
Total Posts: 792407    
Members ( View Memberlist )