When i put the application in the webserver, i receive that error in log file from app/webroot/error_log but the app works normally in localhost.
[14-May-2015 22:51:59] PHP Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /public_html/app/webroot/index.php on line 29
this release will not work on php < 5.3.0
Please, update Your server config like PHP Configuration
Related
I am using Yii2 and after updating the framework (composer update), the following error appeared:
Parse error: syntax error, unexpected ‘.’, expecting ‘&’ or variable
in vendor/markbaker\complex\classes\src\operations\add.php on line 18
Does anyone know what this is about?
The vendor dependency markbaker/complex that throws this syntax error simply requires php 5.6
you need to either update your environment or try an older version of that library
I have tried to install Moodle 3.5.1 on my development server (Apache 2.4.29 and MySQL v.5.7).
The installation process went smoothly: The MySQL database has been set up, all required PHP packages are installed, the system has been successfully installed, all file permissions are correct.
After the installation I only get the following error:
"Coding error detected, it must be fixed by a programmer: PHP catchable fatal error"
There are no further error messages. There are no error messages in Apache Error log or PHP log files. In the PHP ini file the display of error messages is activated.
So I can not figure out what did not work or how to fix it.
Put error_reporting(E_ALL); and ini_set('display_errors', 1); in the beggining of the script you see problem in for more debug info
Moodle 3.5 requires PHP 7
https://docs.moodle.org/35/en/PHP
Could that be your problem?
My client project is working in localhost environment but in client server, it is giving the following fatal error:
Error: Class 'DebugBarFilter' not found
File /home/pantaid8/public_html/vendor/cakephp/debug_kit/config/bootstrap.php
Line: 2
yes code is in 21 line but message is coming same what I mentioned.
I have an instance of mediawiki installed with an extension called Confirm Account. This works fine on my MAMP setup at home. On my MediaTemple.net account I get this error when the extension is run:
Error sending mail:Unknown error in PHP's mail() function.
The server error log error is:
qmail-inject: fatal: unable to parse this line: Return-Path:apache# 216.70.110.23:7081
I have no idea what to do to fix this.
Thank you.
Set $wgPasswordSender to some meaningful email address.
I just installed nodejs v0.6.12 on Ubuntu 10 on Amazon AWS.
The code runs without any issues on my computer (running 0.6.11 on ubuntu) but on the AWS server, I get a JSON parse error:
SyntaxError: Unexpected token u
at Object.parse (native)
The error appears to be coming from the line where I am trying to parse the request from the client (containing a JSON array). It does not appear that I am using any unassigned variable in the line where the error appears to be coming from.
Once again, the code works on my computer - I do not believe I should need any modules for JSON since its built-in with nodejs. Any help in troubleshooting will be appreciated.
The line throwing the error is given below:
obj = JSON.parse(req.rawBody); // I tried both - first by assigning obj an empty value
var obj = JSON.parse(req.rawBody); //
Thanks.
The issue was that the new version of Express (3.0) does not appear to support req.rawBody anymore - the old version did.