jQuery not loading in Yii2 - yii2

I first deployed my application to a shared server on Godaddy and everything was working perfectly. I just moved to a dedicated server still on Godaddy and am experiencing jQuery issues. I cannot search in Gridview. The error in the console is
Uncaught TypeError: jQuery(...).yiiGridView is not a function
I have tried clearing the assets folders in web/assets same issue.
When i change my index.php to development mode, i get an Internal Server Error and nothing displays.
When i change my index.php to production mode, the site loads but i cannot perform any jQuery function.
Any suggestions?

Related

VS Code 2017 "Localhost refused to connect" HTML file

This is a simple index.Html file, when i click on run i get the attached screen.
I have included the Json configuration.
The previous posts did not resolve my issue, and i did restart the machine as well as running VS Code as an admin. VS Code Error
installed Extensions
This happening because of your firewall setting restriction. please
Try Live Server Extension AND check for Firewall Settings.
Plain HTML/CSS can be opened as a file, no need to run them through a web server.
And if these procedures didn't work tell me about your browser.

404 on an existing file

Recently I was trying to run an completed website on a hosting of my client. On my hosting, wedos.net, everything works properly, so does when running on my localhost. But on this particuluar hosting (Forpsi.com), lot of things act strange.
The thing that I found most annoying, is that server returns 404 Error on a files that exist - but only for *.svg, *.otf, *.woff files etc..
*.php, *.html, *.css,... Each one of these work properly. Not sure where is the issue.
According to this problem, my fonts won't load, neither do my svg files.
Any ideas?
Sounds like your host has a blacklist of extensions, you should ask them if they got any filters in Apache Module mod_access
You can host these elsewhere if you can't resolve it in this server

how html5 apache works first time

I have created one HTML5 web app which works in offline mode.I load it first time form server and then when server is off it works perfectly.Webapp url is http://localhost/index.html
Now , if I try to load that webapp first time on any new machine then how can it resolve the localhost url.I have all the resources bundled with webapp.
In this case server is off and browser is not able to locate url http://localhost/index.html
Any idea if webapp can work in offline mode , even if its not connected to server ever.
What you are doing and expecting seems to make sense. It would be smart to check the console in the Chrome Developer tools. Something along the lines of the following should be shown:
You might be serving the manifest file with the wrong content type (should be text/cache-manifest) or the fact that you're working on localhost might somehow interfere (dunno).

Why is a razor view of my servicestack site displaying the metadata page on azure only?

I have an application that displays my razor views of servicestack endpoints as expected on localhost. However when deployed to azure websites a particular page displays the metadata page for some reason. I don't know how to work out what has gone wrong as it all works on my machine :).
For reference, the view name matches the return DTO. I've tried the site in release mode on my machine. All other pages display as expected on azure and locally. I've cleared the cache and re-started the site from the control panel. I'm running out of things to try.
Any ideas appreciated.
Some general troubleshooting approaches that might help you:
Use Postman, cURL or Fiddler to watch the HTTP traffic between your computer and the website, looking for clues in HTTP headers, requests and responses.
Using FileZilla, connect to your website via FTP. Download the content of /site/wwwroot to a new directory on your local machine. Add this as a virtual website in IIS and run it locally. You'll be running exactly the same code that is deployed.
Instrument your application with tracing in a similar fashion to ASP.NET Tracing and look for exceptions or any other odd behavior.
Refer to Troubleshooting a Web Site for additional resources.

Appcache manifest downloads all files but still unable to access offline unless they have been accessed online

I have successfully created an appcache manifest that is downloading all of the website content. I have checked this through chrome dev and it's all working.
The issue I am having now is that even although the entire website has been cached, I am unable to access the cached pages when offline, unless I had accessed them online.
I am using Apache and accessing the website via an iPad using safari browser.
I have an idea that this may be due to the server not allowing access to cached pages unless they had been accessed online as some kind of security measure.
Any ideas?
if your files are in PHP or ASP this will not work.
It need to be JavaScript or other files that can be run localy like Image, HTML.