Re: V4 Vs V5 Issue

From: Date: Tue, 01 Jul 2008 15:51:09 +0000
Subject: Re: V4 Vs V5 Issue
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-276183@lists.php.net to get a copy of this message
Hi Thanks I have tested the path, that works fine. I set up a dummy file on the same path just to check that, it found that and printed out some echo'd text from that file. I can see the content of core_js.php file in the the IE view source view. At 01:43 AM 2/07/2008, Eric Butera wrote:
On Tue, Jul 1, 2008 at 11:27 AM, Neil <neil@ausnet.ws> wrote: Hi First Post here, I hope this is the right place for this post. This is probably not a php problem, I think it may a configuration issue, but sorry I just dont know where to look I have a V4 site the calls an on line editor and part of the process is by window.onload. If I had to explain how it all works I could'nt JS is not my thing and this is a fairly old piece of code. anyways -------------------------- Have a bit of code that looks like this . . <body leftmargin="2" marginwidth="2" topmargin="2" marginheight="2" onResize="blockDefault();"> content; include($settings['app_dir'].'/js/core_js.php'); echo <<<content <script LANGUAGE="Javascript"> window.onload=initEditor </script> <table border="0" cellpadding="5" cellspacing="0" width="100%" height="100%" class="framed"> . . . ---------------------------------------------------------- Under My V4 Sever it works fine .....the Java script loads and an all is fine. On my V5 Sever I get the following Errors Line: 68 Char: 21 Error: Syntax error Code: 0 URL: ...... and then Line: 600 Char: 11 Error 'initEditor' is undefined Code 0 URL........ Now the thing is, when I view source code in IE off both servers the the core_js.php is being read and is visible, the initEditor function is there for all the world to see. If I rename the initEditor function on the V5 version and add a new empty function I still get the same error messages. I dont have much hair and I am tearing out the rest as we speak :).....I have no idea where to look so I am just hoping someone can point me in the right direction. Like I said in the beginning I think it must be a configuration issue but I just dont know what or where. Anyways TIA Cheers Neil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Compare your rendered output from the v4 and the v5. You might see something in the php5 version that has some sort of error displaying to screen that causes a parse error inside your JS block that wasn't there before. Something might have changed about the way your settings variable works too. Do a var_dump($settings['app_dir'].'/js/core_js.php') and see if it actually prints out a real path to a file that exists. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#276183) next »