Local vs Deployed Laravel Issue - php

I am having a weird problem with my Laravel 5.5 app deployed on IIS.
The App has been running for 6 months with no problem, with people adding data into it.
Since yesterday (No changes on Code Side) when the people try to save a form the app just hangs, no error what so ever, even if I put debug mode On.
Now for the weird(er) part, this doesn't happen on all forms and only happens when using the app "over the internet”, When I Remote into the Server and use the App “locally” then The app works Fine with No Problems.
I suspect its a php.ini problem but cant be sure
Thanks.

Related

Laravel pagination is not working after deploying it on AWS EC2 Sever

Laravel pagination not working properly after deploying the app on AWS EC2 server. It was working fine on the localhost using Xampp server. In the localhost, MySQL was used as the database whereas in AWS server Aurora MySQL database is used. It is basically a reporting page were the first page loads properly but whenever any other page is clicked from the below pagination links it shows loading for a long time then fails with the message "This site can’t be reached". In the AWS EC2 server, Nginx is used. Can anyone help me solving this issue?
Thank you
I have found out the solution of the problem. The pagination pages were not https. As a result, it was not supporting. I used forced https which was working perfectly for other URLs but was not working for paginations. I used $users->setPath(''); after each paginate command to make those URL https. After taking the above-mentioned step, it worked properly. Thank you

CodeIgniter server tests give 404?

A client askmed me to write RESTful API using CodeIgniter. Maybe codeigniter-restserver can make my task easier. So I downloaded the package, extract it, and upload it to both servers: my development server (123.100.77.10/ci-server), and the production server (99.40.143.100/ci-server). The only difference is the $config['base_url'] value (in application/config/config.php)
I had no problem running the tests on my development server. All test cases passed succesfully. But on the production server, each of them gives 404.
Anyone ever encountered this issue? How to solve this?

Cakephp and iOS 10.3.2

Since the new iOS update (10.3.2), we can't reach our website from an Apple device. Safari, Chrome or Firefox are returning a blank page or an error page saying there's a network problem.
We've tried from different places, different kind of iphones, on wifi or cell connection (3G,4G)
On mine it was working well, so I updated it to the 10.3.2 version, and I'm having the same error.
I tried contacting my web host but they told me they couldn't do anything. I tried to install Cakephp in a subdirectory, but even with a fresh install and an empty cakephp (2.9.8), it doesn't work.
I tried the same thing with a Cakephp 3 installation, and it works.
I tried installing Cakephp 2.9.8 on another web hosting (a personal one from the same web host) and .. it works.
So I'm getting a little confused as it seems to be an issue with :
iOS 10.3.2
Cakephp 2.9.2 to 2.9.8
my web hosting
Does anybody can give me any direction to look up ? I'm starting to be really depressed here ...
I found a temporary solution by changing my web hosting configuration.
My web host (OVH, French host) allows to use PHP-FPM (which is a PHP FastCGI implementation) to enhance the website performance.
When I disabled it yesterday, my website was available for iOS 10.3.2 users ! I don't know why, but for now I'm relieved.
I've just asked OVH if they have any idea why, but I'm not really optimistic about their reply ...

laravel localhost base_url 500

I've had an app built for me using laravel and I'm trying to get it running on my local machine (MacBook pro running MAMP).
The lead developer is currently away so i was hoping someone could help me with my problem!
No matter what I do, I only get a white page when trying to run the app from a browser, even though I believe I've set the config and htaccess file correctly.
Mamp is running on port 8888 and the app is in the 'event' directory. The config file has the base url as:
$config['base_url'] = 'http://localhost:8888/event/';
but all I get is a white page. I have checked php and thats running fine, and if I call other files outside of the laravel app they all work.
I'm wondering if there's a way I can diagnose the issue using the developer bar or some other tool? At the moment all I can see is a 500 error.
Thanks!

Cakephp Authentication not working in Internet Explorer 8 and Chrome

I followed the tutorial for setting up simple authentication (http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html) and I am having issues with Internet Explorer 8 and Chrome. Whenever I try to login, it just keeps redirecting me to the login page. This only works in Firefox. Could this be a cookies issue? I am not sure how to troubleshoot this.
Edit:
I realized this only works in Firefox. I have added a line in the core.php file under the Config folder to disable the checkAgent and it still does not work.
I can't be sure that this is the same problem, but it may be useful in the future... have you checked the date on your host machine?
When a cookie has a bad date from an de-synchronized host machine (which happens frequently in my virtual machine environment), Chrome correctly rejects it, which causes the PHP session variables to be lost. Firefox is more lenient.
It's a simple fix, and it's caught me out more than once in the past!
App Controller sample:
https://github.com/hugodias/cakeStrap/blob/master/app/Controller/AppController.php
Users controller sample:
https://github.com/hugodias/cakeStrap/blob/master/app/Controller/UsersController.php
Users model sample:
https://github.com/hugodias/cakeStrap/blob/master/app/Model/User.php
Login form sample:
https://github.com/hugodias/cakeStrap/blob/master/app/View/Elements/form_login.ctp
Working in all browsers
After further investigation, it was an environmental issue. I was running my webserver/mysql database in an Ubuntu 11.04 virtual machine. I noticed very odd issues occurring. When I created a new virtual machine and loaded my project files, everything was functioning correctly. That was very bizarre.

Categories