Cannot get php to work on ubuntu [closed] - php

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 8 years ago.
Improve this question
I recently created a server with a digital ocean and I have been trying to learn their commands and what not so I can create web servers. I have a project that I have uploaded, and when I visited that page, what was meant to show my project, displays as a blank webpage
I have located the problem to this file, see I have wrote a bunch of test 1, test 2 to find my problem because no errors are showing. Go to line 45 and you will see this, and then at line 111 where it is throwing an exception is where it halts.
https://bitbucket.org/benshepherd/ben-mvc/src/79041e868b85aeeacfefac23ce729a0c2a6b949f/Libs/Controller.php?at=master
you can see here http://178.62.26.90/mvc/ the results of what it is echoing out.

Line 97: Either the model class needs to be called pagesModel or this line needs to change to be
$class = ucfirst( $modelName ).'Model';
Also line 94:
$file = __DIR__.'/Models/'.$modelName.'.php';
Should probably be:
$file = __DIR__.'/../Models/'.$modelName.'.php';

Related

Fatal Error in WordPress functions.php file [closed]

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 was adding some code to alter the 'cart' option on WordPress and had to add some code into my functions.php.
I followed the instructions, added the code to my functions.php file, and received the following error:
Fatal error: Cannot redeclare enqueue_font_awesome() (previously declared in /home2/xxx/public_html/xxx/wp-content/themes/connection/functions.php:11) in /home2/xxx/public_html/fba-product-designer.com/wp-content/themes/connection/functions.php on line 21
I cannot access the administrative URI, and my website now shows the above message. I can go back and edit the functions.php so I'm hoping there is an easy fix in my code.
I'll edit this if you post your source code in your question, but your error is suggesting that you redeclared enqueue_font_awesome() on line 21 of functions.php. It originally exists on line 11.
Remove one or the other, and test. If one doesn't work, try removing the other and replacing the previously removed one.
This should resolve the error.

preg_match_all stop code execution on live server (large file) [closed]

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 would like to ask if someone had the same problem or know any workaroundto fix it.
I have a large file (15MB) full of array values which i find and read them.
On xampp the code with preg_match_all works correcly (for large and small files).
on the server Current PHP version: 5.5.9 (2 vcpu 2GB ram)
preg_match_all stop execution of the code (if i test with small file it gives correct results).
Try using:
ini_set('memory_limit','1024M');
In the beginning of the script.
Also, if you're calling the script from your browser, print an empty space on that loop to keep your browser alive.

Page crashes with no clue why [closed]

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 have a webpage weblup(dot)net/templates/template3 (replace (dot) with a '.') and it just crashes when I run it. It was working fine not long ago but I have no clue why it's crashing all of a sudden. The biggest change before this happened was that I changed a picture.
Your Website have error in logo.png and it's to big to load in website. (16620 x 9333 pixels).
Solution: Change Your Image and resolution Image

ip currently active error [closed]

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
When someone tries to sign up to my website they keep getting this error code:
ERROR IP currently active
My question is how can I fix this in my sign up folder this is the only IP text I have so i'm unsure I bought the site yesterday.
i just want to know what i need to get rid of so i can get rid of that where it says ip currently active
Well, this is where that message is displayed (well, where it originates anyway):
$msg = "IP is currently active.";
So if you want to remove that message then you want to remove that line of code. Which in turn means you can remove the if block containing that line of code, since it would be empty. And unless anything else is using the results of the database query which drove that if block, you can remove that as well.

Putty exectes my php script without error but no results [closed]

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 8 years ago.
Improve this question
Putty executes my php script without error but no results. This script is supposed to run a query on the database and the send those results as excel file. Does anyone know what could cause this?
Try prepending your script with:
<?php
error_reporting(E_ALL);
?>
to output all errors. Failing that, you could put some debug in the code to find where it keeps failing.
Sometimes there is something in the PHP error log (/var/log/php_errors on Centos).

Categories