Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
Issue: I made an application without problems working on localhost where I debuged it. But when I uploaded it on server in internet (my school server) few SQL didnt work, there were no PHP error messages and i tested SQL code in phpMyAdmin(on server) and there it worked.
Guys,can you help me solve this please?
The main problem is that you cannot provide any useful information about whats wrong. In this case, we need to tell PHP that for any and every problem please send it down to the client on page load. Normally in production this is precisely what you do not want to do but in this case- we need it.
Put the code below at the beginning of your index.php file, or whatever file your web server is configured to send requests to:
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(E_ALL);
So long as your web server is successfully sending requests there, something should come up on page load that will help us determine the issue.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
this is the ui when running on my localhost
this is the ui when running on cpanel hosting
my question is, what is wrong with the ui? everytime i run my application on server, the sidebar always gone wrong
for little information, i use Laravel 5.6 and AdminLTE3 template.
the top navbar and the sidebar is at different .blade.php file. i combine them in master template that contains them (using #include) and the content of page (using #yield).
my master.blade.php
is there anything's wrong with my code, or, this is the bugs from adminLTE 3?
thanks for your help.
I was seen your web & I tried to understand your problem. I found 3 errors in console related to your css files. I think that problem happens because that css file errors. but i can't understand why it shown that errors in console. I attached snapshot of that error, see this below
enter image description here
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
i am recently doing one project that i face issue php files not working on server cpanel.
error :
while php files are run shown below error
OUTPUT :
No input file specified.
The root cause of the error is that PHP cannot find the file the server is telling it to look for.
It must be an issue with the .htaccess or insufficient file permission.
Check the .htaccess file.
Check the permission of the file. If it does not have read permissions, add it.
Hope it helps.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
Hey friends in my hosting my base_facebook.php file is deleted continuously I talked with customer care he says that hosting antivirus detected your file as a virus but same file I tried to other hosting and it is fine what I do?
What is the problem in my file and how to fix this
Here is my file
That first piece of code in your base_facebook.php is malicious. Remove it!
EDIT
This file is needed for your facebook application(if any) to work! Either remove that piece of code(which I marked in red) from your file or replace the whole file. Based on the version number, it seems to be v3.1.1.
When searched for a copy of this file, I found this: https://github.com/uiri/feedview/blob/master/base_facebook.php
I think you are using an old Facebook SDK(v3.1.1), which I think they officially don't support(or its depreciated)
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I'm currently working on a website for a client, but this website is running PHP version 5.2.17.
Can anyone recommend the best way to tackle this? I've experience in HTML/CSS/JS/JAVA with a basic understanding of PHP.
I'm thinking of rebuilding the website with a HTML5 framework and basically dumping this on top of the old PHP pages, integrating the MySQL database and passing through the links to not lose SEO, but ultimately do worry it may affect the site...
I've tried running a WAMP server but as it only goes as low as version 5.3 I get constant errors and the page displays without the CSS and has words overlapping etc.
Images attached.
The errors you are encountering are to do with files which are being included not being found. Check through the code and identify the files that are being requested, then locate those files and correct the file paths, if the files can not be restored then remove the include statements entirely or comment them out, make sure they have been removed from evrrywhere.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I'm filling out a job application which has asked me to write a function which you submit to them as a .php file. The last line of the specification says:
Make sure your file can be executed from the command line: php meats.php (this helps us to check if the code works before even looking at it)
Does anyone know what that means? I've checked that function works fine on my hosting environment but I'm just not sure there is something else I need to do??
Thank you
Without seeing your code, you'll need to make sure it's not using anything that's dependent on being run rendered in the browser executed on the server via a client browser's HTTP request to a webserver, which may send data back to the browser for rendering. These include $_GET,$_SERVER['DOCUMENT_ROOT'] (for relative web paths), and other such variables. You may need to convert these to use magic constants or otherwise work around your limitations.
I'm about to send you down a rabbit hole if you've never been to your command line, but you should SSH into your web server and try to execute your php file just like they said. You'll navigate to the directory with the file and run
php meats.php
Then, the command line will spit out any echos that you've got, or do whatever else your code does.