phpMyEdit - Rozšírené detaily chyby [ Späť ]
219 setup script veľká vždy 2004-04-10 22:32 2006-01-23 01:44
brycen  
nepto  
normálna  
uzavretý 5.4 (stable)  
vyriešený  
žiadny  
žiadny  
Check "HTML header & footer", setup generates NO php code
Using phpMyEdit 5.4, if I check on the setup option "HTML header & footer", phpMyEdit setup generates HTML ,but forgets to include the php code!

--------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>stuff</title>
<style type="text/css">
table { border: #004d9c 1px solid; border-collapse: collapse; border-spacing: 0px; width: 100%; }
th { border: #004d9c 1px solid; padding: 4px; background: #add8e6; }
td { border: #004d9c 1px solid; padding: 3px; }
hr { border: 0px solid; padding: 0px; margin: 0px; border-top-width: 1px; height: 1px; }
</style>
</head>
<body>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>stuff</title>
<style type="text/css">
table { border: #004d9c 1px solid; border-collapse: collapse; border-spacing: 0px; width: 100%; }
th { border: #004d9c 1px solid; padding: 4px; background: #add8e6; }
td { border: #004d9c 1px solid; padding: 3px; }
hr { border: 0px solid; padding: 0px; margin: 0px; border-top-width: 1px; height: 1px; }
</style>
</head>
<body></body>
</html>
Here's one way to fix it. Use a different variable name
when adding the HTML:
-------------------------------------------------------
if ($HTMLissues) {
$buffer2 = <<<END
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>$pageTitle</title>
$css_directive
</head>
<body>
END;
$buffer = $buffer2 . $buffer;

Poznámky k chybe
nepto   
2004-04-11 13:12   
Fixed in CVS.

Thank you for reporting.
brycen   
2004-04-19 20:16   
Not yet fixed in cvs as of today (19 April 2004).
nepto   
2004-04-20 12:32   
Well, it works fine for me.

Could someone confirm this?
nepto   
2004-04-20 15:54   
Oh yes, now I understand where was problem.

Please, try it now. It has to be definitelly fixed.
brycen   
2004-04-22 02:02   
I tried it again. It still does not work. The generated HTML is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>NextBus: Define which routes serve each stop</title>
<style type="text/css">
table { border: #004d9c 1px solid; border-collapse: collapse; border-spacing: 0px; width: 100%; }
th { border: #004d9c 1px solid; padding: 4px; background: #add8e6; }
td { border: #004d9c 1px solid; padding: 3px; }
hr { border: 0px solid; padding: 0px; margin: 0px; border-top-width: 1px; height: 1px; }
</style>
</head>
<body>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>NextBus: Define which routes serve each stop</title>
<style type="text/css">
table { border: #004d9c 1px solid; border-collapse: collapse; border-spacing: 0px; width: 100%; }
th { border: #004d9c 1px solid; padding: 4px; background: #add8e6; }
td { border: #004d9c 1px solid; padding: 3px; }
hr { border: 0px solid; padding: 0px; margin: 0px; border-top-width: 1px; height: 1px; }
</style>
</head>
<body></body>
</html>
pilavdzic   
2004-10-29 21:52   
I have experenced the same problem as well. Check the boxes for generate HTML and the other one. You will see that nothign but the above HTML is produced. It definately does not work.
hbernard   
2004-11-28 22:10   
pilavdzic, I can't reproduce this with current CVS phpMyEditSetup.php

Can you test it with current CVS ?
pilavdzic   
2004-11-28 22:44   
Done. I checked it out with current CVS and it now works, I believe this bug is now resolved.
nepto   
2004-11-28 23:37   
I just tried it now and it works well.