I have a problem with js not working on a live server, on a local server everything is fine but on a live server not, could anyone help? here is a test I did… link to live server , the text should be using the fade effect.
I have a problem with js not working on a live server, on a local server everything is fine but on a live server not, could anyone help? here is a test I did… link to live server , the text should be using the fade effect.
Check your jquery file, it’s damaged.
where exactly should I put the jquery files, I can’t really manage to figuer it out
You shouldn’t hardcode path to jquery file directly in code.
Best solution would be to put it in your controller/view code like:
Yii::app()->clientScript->registerCoreScript('jquery');
this will include latest jquery script in page head.
that’s what I did…in the view site/index the following code
Yii::app()->clientScript->registerScript(
'fadeAndHideEffect',
'$(".sys-message").animate({opacity: 1.0}, 10000).fadeOut("slow");'
);
that’s why I find it strange that on the local server everything is running ok and on the live server no
I have noticed that jquery file is truncated, it doesnt display the whole file… which i find very strange… is your jquery file complete? have you uploaded the whole framework complete? Sometimes, the communication fails on FTP and tends to write wrongly the files… please review: http://cleantags.com/trackME/assets/ed138815/jquery.js
Double check if jquery has been fully uploaded to your live server…
I deleted the YiiRoot and downloaded the latest Yii release and uploaded to my server, but I get a strange error
Warning: Unterminated comment starting line 718 in /home/adrian/public_html/YiiRoot/framework/db/ar/CActiveRecord.php on line 718
Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /home/adrian/public_html/YiiRoot/framework/db/ar/CActiveRecord.php on line 718
What went wrong here? On local server everything is ok, and I double checked the ftp upload to the live server…line 718 of CActiveRecord.php looks clean…
What FTP client you using? It is weird that when you upload a second time, the error goes to another file. It seems that contents are truncated on upload
I use FileZilla…I uploaded from PC and Ubuntu and I have the same error…
Repeat the upload on top of existing files. Download and compare with original.
/Tommy