How to Debug PHP?? Sick of laravel white pages [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
These days I'm moving an old PHP project to Laravel framework and I'm struggling with these white pages that come up every hour. Back when I used Asp.net I never saw such a blank pages. But now in PHP and Laravel I always see white pages and I should solve the problem with guessing where the issue may be or not.
No matter what I do. "Display errors" is on. "Display startup errors" is on. Storage/laravel.log has nothing helpful.

check APP_ENV to be local not production
read Laravel's Logging documentation
install a debugger extension: Xdebug is fine
if you are using feature tests consider adding
$this->withoutExceptionHandling();
to disable Laravel's exeption handling wich may lead to redirecting,...
if youre still unable to see error page it may be a php matter. check this answer

Open the .env file in the root of your Laravel project and change APP_DEBUG=false to APP_DEBUG=true

Related

Is it safe to uninstall everything associated with MySql? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
This post was edited and submitted for review 1 year ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I've started learning php recently and will be using MySql. But I have a lot of MySql 'things' installed on my computer (in the screenshot). I want to completely uninstall everything and have XAMPP handle whatever is needed. I want to know would it be a good practice to do so and is it actually safe to remove everything, making sure that nothing would break and is there a way to check if some software depends on any of those?
Your Version is very old, so update it urgently.
You only need the Server and the shell.
Workbench is helpful as it provides a gui, even when phpmyadmin doesn't work.
If you decide to use Java c++ or other languages you can always come back and install them again. Them same goes for samples and Documentation

How to resolve PHP installation missing error while accessing a website? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am trying to access a website https://worldspills.com from my Chrome browser and I am getting the following error
Your PHP installation appears to be missing the MySQL extension which is required by WordPress
I have checked the existing questions with similar error (Php - Your PHP installation appears to be missing the MySQL extension which is required by WordPress). However I don't understand how those solution apply to my context as i am just trying to access a third-person website and not trying to build or maintain my own page.
Is it possible for me to access this website on a simple browser or do i need to get certain applications and addin for that?
If you are not the owner of the website you can't do nothing, it's not your browser or your computer problem in general.

Wordpress : ERROR: "Table Prefix" must not be empty [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
im trying to do a clean install of Wordpress 4.5.2 but running into an error at the database stage. After filling in the correct database details and clicking Submit i get this error:
ERROR: "Table Prefix" must not be empty.
After doing some research some users have fixed the issue by increasing the post_max_size and upload_max_filesize under the PHP settings. I have done this but still get the same error. The apache logs etc. are not pointing torwards any exact error, just giving the 500 error GET /wordpress/wp-admin/setup-config.html?step=2 HTTP/1.0
Im running Plesk 12.5.30 on RHEL7.2.
I have done many Wordpress installs before and this is the first time i have come across this issue. I have wordpress installed on a few other domains on the same server and they are running just fine, although they were not installed on this server merely copied over recently so unsure if the same error would have occured had i clean installed them as well.
Lastly, i have already tried deleting the domain and database and creating them again just incase and still have the same issue.
Any suggestions would be much appreciated.
Thanks
Chris
You need to define table prefix in your wp-config.php file.
Example:
$table_prefix = 'chris_';
In the folder where you install WordPress, there can't be any files. Maybe you have some other files there. Remove all files and try installing WordPress again.

downloading Xampp and setting up a good working enviroment? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Currently I know a bit about HTML CSS and JavaScript. I now want to learn php and mySQL. So I've read around got some information but I can't really make clear the process I should be following to set up a good development environment.
First off my text editor is Brackets and I've downloaded Xampp onto my computer. I'm currently getting no errors when I open the control panel everything seems to be running fine. So here is my questions
What should I be doing next? is that it?
Is there a tutorial that I can follow that stops me asking for help on here?
My reason for posting is I did the same thing last time and then the next day I started getting errors so I've had to reinstall.
I am sure you must have read all about php. Let me lay out some basics for you. If everything is fine with control panel and you are able to start servers then type localhost in the browser and that'll confirm the installation process.
https://blog.udemy.com/xampp-tutorial/
Follow that link in case you face problem.
To start with php go to any tutorial website, tutorialspoint etc. and learn some basics then make a folder in htcdocs and then access your files using localhost/yourfoldername/yourfile
localhost/phpmyadmin - to work on database.

ssl with php payment page [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have looked at the other questions on SSL & PHP on this site and i'm still confused. I have never setup an https page before. I have read articles on ssl and know what it is, but I still don't know how to set it up with my php application hosted on an online Linux server.
I'm frustrated because after a lot of searching (even on this site) i'm lost on what my steps should be. Please help.
I need to set this up with my payment page (member payment) and login page. I'm using codeigniter framework
assuming all else (server stuff) is configured properly, the only thing you need to do is redirect the page to https://your-url instead of http://your-url. It's completely transparent -- just make sure that all assets (external CSS/JS) are loaded using https as well if using absolute paths.
The best way to do so would be to include CSS/JS files via protocol agnostic links ( instead of http://mydomain/mylibrary use //mydomain/mylibrary and it will do it automatically. Images and such should be relative paths anyway.
Usually, the "server stuff" takes all the time to properly setup. However, these are beyond the scope of the question (I hope) since that would be best asked in https://serverfault.com/ .

Categories