Copy link to clipboard
Copied
I have just upgraded from dreamweaver 8 to 11.5. I would call myself somewhat of a newbie with dreamweaver actually.
The scripts I have been working on were existing and I have been making changes just fine with dreamweaver 8. Now that I
have upgraded, it seems that all the pages are pretty much broken. The inital html page works ok, but once it tries to run the
php code and create the dynamic page, I get what looks like my php code being displayed on the page. Is there somewhere
to go read about changes that might be needed when migrating from dreamweaver 8 to dreamweaver 11.5?
Thanks!
Patty
Copy link to clipboard
Copied
I would like to add to this discussion. Uploading files in Dreamweaver CS5.5 seems to compress all the html and php by removing spaces and returns. The result creates broken php.
I thought it might be caused by the FTP Performance Optimization option on the testing server, but that has not been the case. When I disabled this option, the compression continued to occur. It's not evident on the local server, because it happens on upload. Anyone know why?
Copy link to clipboard
Copied
PS Don't overwrite your local files without saving a copy first.
Copy link to clipboard
Copied
I would like to add to this discussion. Uploading files in Dreamweaver CS5.5 seems to compress all the html and php by removing spaces and returns. The result creates broken php.
Sorry, that's just not true.
Copy link to clipboard
Copied
Which part isn't true?
1. I created a new php page in Dreamweaver CS5.5
2. I created two new recordsets
a. Here is the code:
<?php require_once('Connections/Rani.php'); ?> <?php $Section_find = $Rani->newFindCommand('CATEGORY'); $Section_findCriterions = array('cat_ID'=>'*',); foreach($Section_findCriterions as $key=>$value) { $Section_find->AddFindCriterion($key,$value); } $Item_find = $Rani->newFindCommand('ITEM'); $Item_findCriterions = array('cat_ID'=>'=='.fmsEscape($_REQUEST['cat_ID']),); foreach($Item_findCriterions as $key=>$value) { $Item_find->AddFindCriterion($key,$value); } fmsSetPage($found_records_find,'found_records',10); fmsSetPage($Section_find,'Section',10); fmsSetPage($Item_find,'Item',10); fmsSetPage($Sections_find,'Sections',10); $Item_result = $Item_find->execute(); $Section_result = $Section_find->execute(); if(FileMaker::isError($found_records_result)) fmsTrapError($found_records_result,"error.php"); if(FileMaker::isError($Section_result)) fmsTrapError($Section_result,"error.php"); if(FileMaker::isError($Item_result)) fmsTrapError($Item_result,"error.php"); if(FileMaker::isError($Sections_result)) fmsTrapError($Sections_result,"error.php"); fmsSetLastPage($found_records_result,'found_records',10); fmsSetLastPage($Section_result,'Section',10); fmsSetLastPage($Item_result,'Item',10); fmsSetLastPage($Sections_result,'Sections',10); $Item_row = current($Item_result->getRecords()); $Section_row = current($Section_result->getRecords()); $found_records_row = current($found_records_result->getRecords()); // FMStudio Pro - do not remove comment, needed for DreamWeaver support ?> <!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <title>Untitled Document</title> </head> <body> <table name="Menu_table" style="background-color: #000000; " cellspacing="1" width="400"> <tr bgcolor="#EEEEEE"> <th>Section</th> </tr> <?php foreach($Section_result->getRecords() as $Section_row){ ?> <tr bgcolor="#FFFFFF"> <td><?php echo $Section_row->getField('name'); ?></td> </tr> <?php } ?> </table> </body> </html> 3. I uploaded the file and tried to preview. a. Here is the error message: Parse error: syntax error, unexpected T_VARIABLE in /home8/thrpsdes/public_html/rani2011/Testing.php on line 1 4. I went to the remote server and downloaded the page. a. here is the code: <?php require_once('Connections/Rani.php'); ?><?php$Section_find = $Rani->newFindCommand('CATEGORY');$Section_findCriterions = array('cat_ID'=>'*',);foreach($Section_findCriterions as $key=>$value) { $Section_find->AddFindCriterion($key,$value);}$Item_find = $Rani->newFindCommand('ITEM');$Item_findCriterions = array('cat_ID'=>'=='.fmsEscape($_REQUEST['cat_ID']),);foreach($Item_findCriterions as $key=>$value) { $Item_find->AddFindCriterion($key,$value);}fmsSetPage($found_records_find,'found_records',10); fmsSetPage($Section_find,'Section',10); fmsSetPage($Item_find,'Item',10); fmsSetPage($Sections_find,'Sections',10); $Item_result = $Item_find->execute(); $Section_result = $Section_find->execute(); if(FileMaker::isError($found_records_result)) fmsTrapError($found_records_result,"error.php"); if(FileMaker::isError($Section_result)) fmsTrapError($Section_result,"error.php"); if(FileMaker::isError($Item_result)) fmsTrapError($Item_result,"error.php"); if(FileMaker::isError($Sections_result)) fmsTrapError($Sections_result,"error.php"); fmsSetLastPage($found_records_result,'found_records',10); fmsSetLastPage($Section_result,'Section',10); fmsSetLastPage($Item_result,'Item',10); fmsSetLastPage($Sections_result,'Sections',10); $Item_row = current($Item_result->getRecords()); $Section_row = current($Section_result->getRecords()); $found_records_row = current($found_records_result->getRecords()); // FMStudio Pro - do not remove comment, needed for DreamWeaver support ?><!DOCTYPE HTML><html><head><meta charset="UTF-8"><title>Untitled Document</title></head><body><table name="Menu_table" style="background-color: #000000; " cellspacing="1" width="400"> <tr bgcolor="#EEEEEE"> <th>Section</th> </tr> <?php foreach($Section_result->getRecords() as $Section_row){ ?> <tr bgcolor="#FFFFFF"> <td><?php echo $Section_row->getField('name'); ?></td> </tr> <?php } ?></table></body></html>
So what isn't true?
John Vellela
3rd Planet Studio
358 Chestnut Hill Ave
Suite 204b
Brighton, MA 02135
617.739.2306 fax: 617.566.3141
www.3rdplanetstudio.com
Copy link to clipboard
Copied
> Which part isn't true?
The part that says that DW is compressing the code and removing the spaces. If you are seeing that being done, it's not being done by DW.
Copy link to clipboard
Copied
I don't know what's causing it. DW CS4 uploads the file without compression occurring. DW CS5.5 uploads the file and compression occurs. Your defense of DW is admirable, but not particularly helpful.
Copy link to clipboard
Copied
Still no solution. I used FireFTP to upload the file and it worked fine. No compression and the page functioned properly. Uploaded the same page in CS5.5 and it is compressed and no longer functions. I don't care if you think I'm full of it. This is a real problem for me. If anyone has any ideas, I'd really appreciate them.
Copy link to clipboard
Copied
SJoval wrote:
This is a real problem for me. If anyone has any ideas, I'd really appreciate them.
If you have a reproducible case (and it certainly sounds like it), submit a bug report through the form at http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform. Information submitted through that form goes directly to the engineering team. This is a user-to-user forum, so the only help you're likely to get here is if someone else can reproduce the same problem. I've certainly had no FTP problems with CS5.5, but there might be some unusual configuration issue (probably on the remote server) that's causing your problem.
Copy link to clipboard
Copied
Here is a better picture of the code on the remote server:
Copy link to clipboard
Copied
Yes the PHP is different.
Which PHP version does your server have? Your scripts need to be compatible with your server's PHP.
If they're not, you may need to have your host upgrade the PHP & MySql for you.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
Copy link to clipboard
Copied
The php version on my webhost is 5.2.17. Does that need upgrading?
John Vellela
3rd Planet Studio
[Personal information deleted by moderator]
Copy link to clipboard
Copied
I found out that CS5.5 uses php 5.3. How do I allow it to use 5.2? I'll ask in the forum, too.
John Vellela
3rd Planet Studio
[Personal information deleted by moderator]
Copy link to clipboard
Copied
SJoval wrote:
I found out that CS5.5 uses php 5.3. How do I allow it to use 5.2?
Dreamweaver CS5.5 has code hints and syntax checking for PHP 5.3, but that doesn't affect the code that you write. In fact, the Dreamweaver server behaviors are compatible with PHP 4.3. However, the server behavior code was rewritten in the Dreamweaver 8.0.3 updater and PHP hotfix. If you didn't apply the updater and hotfix, you need to remove the existing server behavior code and reapply the updated (and more secure) versions generated by Dreamweaver CS5.5.
Copy link to clipboard
Copied
Where can I find the 8.03 updater and hotfix. I only see 8.01 and 8.02. Sorry if I'm dense.
John Vellela
3rd Planet Studio
[Personal details removed by moderator]
Copy link to clipboard
Copied
I would edit your profile and remove your personal info in your signature
Copy link to clipboard
Copied
SJoval wrote:
Where can I find the 8.03 updater and hotfix. I only see 8.01 and 8.02. Sorry if I'm dense.
No, you're not being dense. I was mistaken about the number. It was 8.02. However, the download page for the PHP hotfix appears to have been removed. I did have a link to it from my blog, but it now links to a nonexistant page. Unfortunately, Dreamweaver 8 is no longer supported, so I have no idea where you might get a copy. Sorry.
Copy link to clipboard
Copied
Thanks David. I appreciate your effort.
Copy link to clipboard
Copied
I had the same problem and found a simple answer on this forum. The answer I received is from Murray *ACP*
"The symptoms you describe are almost always related to a mismatch between the linebreak type in the code and the native linebreak type on the server. Check your DW PREFERENCES and see what you have specified under Code Format > Line break type:. That should match the SERVER's usages."
To see the full thread in context click below:
This question has been Answered.