Ticket #2528261 (closed defect)
Reporter George |
Opened: 09/22/09 Last modified: 09/23/09 Status: closed Type: defect Resolution: fixed |
Owner Dav Glass |
Target Release: 3.0.0 GA Priority: P3 (normal) |
|---|---|---|---|
| Summary: | Some pages including new syntax highlighter result in HTTP 500 Error | ||
| Description: | for example launch /yui3/latest_build/examples/io/io-get.html from internal cruise control server |
||
| Type: | defect | Observed in Version: | development master |
| Component: | Documentation/Web Site | Severity: | S3 (normal) |
| Assigned To: | Dav Glass | Target Release: | 3.0.0 GA |
| Location: | Example | Priority: | P3 (normal) |
| Tags: | Relates To: | ||
| Browsers: | N/A | ||
| URL: | |||
| Test Information: | |||
Change History
|
Posted: 09/22/09
|
|
Posted: 09/22/09
Sorry, to be more clear: The <?php echo $assetsDirectory ?> needs to be changed to ${assetsDirectory}, since the value needs to be interpreted as part of the PHP string passed to the highlighter (not when executing the HTML file live on QA). Same for other such <?php ... ?> statements which are part of the highlighted string. |
|
Posted: 09/23/09
|
|
Posted: 09/23/09
Resolving as fixed since it's a user error not a code error. |
The <?php echo .... ?> in the following type of statements, needs to be changed to ${assetsDirectory}, since the value needs to be interpreted as part of the PHP string passed to the highlighter (not when executing the HTML file live on QA).
Sent email to yui-authors.
<?php
$str = <<<END
function call(e, b) {
if (b) {
Y.io('<?php echo $assetsDirectory; ?>get.php?user=YDN&allListeners=1', cfg);
}
else {
Y.io('<?php echo $assetsDirectory; ?>get.php?user=YDN&globalListeners=1');
}
}
Y.on('click', call, "#get1", this, false);
Y.on('click', call, "#get2", this, true);
END;
echo(syntaxHighlight($str));
?>