leo80
(Tsantarll)
1
Hello everybody,
I accidentally deleted the assets folder.
When i try to run my project, i see this message:
Failed to load resource: the server responded with a status of 404 (Not Found)
localhost/best_quotes/assets/f1f65891/jquery.js
What’s the solution?
Does this request come from the code: Yii::app()->clientScript->registerCoreScript("jquery") ?
How can i restore my project?
I think yii will generate the assets folder automatically.
jneto
(Joel Neto)
2
if the assets folder doesn’t exist, you have to create the folder. Yii create the folder content but not the folder.
Make sure the directory exists and is writable by the Web Server .
leo80
(Tsantarll)
3
Thank you for the quick reply.
The folder exists. There is problem with the content.
Scripts are requested but there haven’t been generated by Yii.
jneto
(Joel Neto)
4
Strange, check again if web server have write permissions on the folder.
And check http://www.yiiframework.com/wiki/148/understanding-assets/
sajibcse
(Sajib Cse03)
5
Right now I’m also fetch same problem can any one help me
konapaz
(Konapaz)
6
Hi Sajib and Leo
Did you reproduce this issue on localhost server?
If there is no problem in this case then you have to check the permissions folder or other Server configurations