DESCRIPTION: I have a normal HTML website (say, https://example.com) and it has been hosted on Hostinger. Last week, I purchased a PHP script from CodeCanyon. I had put this application on this URL https://example.com/VideoDownloader. The website is running perfectly, but, I'm facing problem with this PHP script.
For the first time, if you visit this URL, it'll redirect you to install.php page. Once you install the script (which takes less than 2 mins), you can immediately start using the application by visiting the same URL. Now, it'll not redirect you to install.php.
PROBLEM: The script works perfectly for 1-2 days. The problem is after 2 days, the application breaks and it starts redirecting you to install.php page again. And, again you have to install it to make it work. This cycle keeps on repeating.
There is nothing wrong with the code and it is running perfectly in my localhost. The version of PHP in localhost is the same as that on my Hostinger server.
WHAT I HAVE TRIED: I tested the script in my localhost and it is running perfectly without breaking. Searching on the internet was not much helpful. However, I got the hint that the issue may be related to the MySQL database to upper/lower case characters.
Please, guide me on this.
Website file structure:
Without errors or other information do not think many will / can help you. I suggest checking your error / access logs first.
Related
I am developing a web application in Laravel 5, I basically fetch data from database in controller method and pass it the the view which is then shown in a table. When i request that page, sometime complete data is not shown. Like it misses couple of rows randomly, it happens randomly every once in a while, sometime plain html is shown in browser and sometime the script as well, but when i refresh the page it shows complete information on the page properly.
What possible reason can be behind this?
Using the php artisan serve command often cause this problem. In a recent past, I encountered the same.
You can get rid of this by setting up your application on a virtual host. I'm using Laragon for virtual hosts and the application is working absolutely fine now.
I am getting a very unusual error, most of the time I can fix this The page isn’t redirecting properly very quickly as it's either something messed up with htaccess or in php script but I have looked for hours and can't find the single problem.
The page loads once with broken css and javascript files, and takes a long time to load but after that this error starts to appear and it'll only fade away when you clear the browsers cache then again the website loads for one time only before showing this error.
Some details
.htaccess file is blank
I tried loading just the welcome module only but the problem remains same.
The server has been updated so I am wondering if this may have caused this problem.
I hope you guys can help me figure out why my website is on redirection loop, I can feel it's something related with cookies but I am not sure what.
File Structure
application
cgi-bin
cronjobs
system
images
system
.htacess
index.php
test.php
Edit:
Website works flawlessly on localhost.
For future if someone stumbles upon this issue, I found out that the sessions were causing issues. I was auto loading the session library and when i removed it to test, it all started to work smoothly. So basically the main problem is with my php configuration and I have got my server guy to look into why the sessions are not working.
I have a quite simple php page (PHP 5.5.35 on CentOS 5.11) that queries a MySQL database. The resulting page shows completely, including the footer I include as a final instruction, so the PHP script runs entirely without error.
Almost every images and js libraries are loaded. However, there are two elements that are never loaded, an image and a jquery library. Each time and with any browser, those elements generate a (in Chrome, for instance) :
Failed to load ressource : net::ERR_CONNECTION_RESET
For testing purpose, I tried to delete those element from the page, ultimately, it is the favicon that can't be loaded. So it seems not to be those elements in particular. The connection seems to be reseted at some point between the PHP script completion and the page loading… and I don't have the beginning of any clue where I should start the troubleshoot.
Some other informations :
Apache logs don't log anything !
The other pages of the site works well
The site works without any problem on my local machine (Mac OS X, PHP 5.5.35 too)
Once the page is loaded, if I click any link on it, it shows a "Connection reseted" error page.
Does anybody have a clue, anything about where to start my search ? Thanks in advance, I am starting to desperate.
It happened that after searching everywhere, the cause was simply that I was handling a lot of parameters through GET – too many of them. I changed the code for using POST and everything worked miraculously… Hope it may help someone, sometime !
Roughly about 20% of the time when clicking on links in my website (www.slr-lens.co.uk), the site completely fails to load. I have tried removing and adding all code segments but to no avail... I've also asked the web hosts, but apparently the server is working normally.
Does anyone have any suggestions about what could cause a web page to sometimes not load? E.g. any specific lines in the php.ini?
The site uses sessions, and there's quite a lot of mysql action for each page load.
Internet explorer will say:
"Internet Explorer can't load this page"
Google chrome will say:
This web page is not avialable: Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error.
Firefox will sometimes only show a blank page.
Sorry for being so vague but its a really vague problem!
Thanks
The answer (or at least a clue) likely lies within your PHP / Apache error logs.
It could be your Apache logs or you just have a bad host. Either way, it seems to load every time here (10+). Have you tried replicating this problem somewhere else?
I've spent all morning trying to find an answer to this, to no avail. I'm working on a website, and I set up a small test server to make changes on. When I loaded the page I had made a few changes to, I noticed that the page stopped short. I reloaded the page, and it stopped at a different place. I reloaded again and again, and noticed three or four places that it stopped at, but couldn't predict where it would stop. The page itself is included from the page with the logic in it, is included when the page isn't POSTed to. I made a small page page containing only a phpinfo();, and the same problem exists as well. It stops at seemingly random places in the tables produced.
Has anyone else ever had this problem, and if so, how did you get rid of it?
Setup:
Windows XP (Test Server)
XAMPP
PHP 5.2.9
Apache 2.2.11
The only change I made to the server was pointing the document root at a different folder in the httpd.conf file.
Most likely, your script is running out of
1) Memory
2) Max execution time
Check those constants in php.ini
I'd check the apache and php server logs.
If you have it crash on you when only calling phpinfo() and nothing else, then it most likely is somekind of conflict (not your code).
Post your logs here if you need more help.