What does the "Europe/Berline]" portion of the error code, located in the php_error_log files, represent?
The php_error_log file is located on XAMPP in the Windows directory: C:\xampp\php\logs.
Here are a few of the error codes:
[18-Apr-2015 04:56:38 **Europe/Berlin]** PHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in C:\xampp\htdocs\app\tests\index_test.php on line 10
[18-Apr-2015 04:57:14 **Europe/Berlin]** PHP Fatal error: Class 'some\directory\Config' not found in C:\xampp\htdocs\myapp\index.php on line 17
[18-Apr-2015 05:02:16 **Europe/Berlin]** PHP Parse error: syntax error, unexpected '#', expecting function (T_FUNCTION) in C:\xampp\htdocs\myapp2\src\index.php on line 36
The answer to this question is that this is the Time Zone. The time zone is set in the php.ini file and is recorded in error logs.
Related
Today I installed Program-O 2.6.8 on a colocation server with x86_64-redhat-linux-gnu, running Apache, PHP 5.3.3, MySQL 5.6.38, PDO and cURL are enabled.
After uploading some AIML files I tried the JSON interface and received an error:
"Something went wrong! Error = Internal Server Error"
I include the log entries and hope someone can tell me what is wrong.
Thanks
Program O has encountered an error. this may help:
Error # 1024
Message: Test error
File: /var/www/vhosts/xxxxxx/webspace/httpdocs/xxxxxx/programo/admin/validateAIML.php, line 21
Program O has encountered an error. this may help:
Error # 8
Message: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php/session) failed: Permission denied (13)
File: /var/www/vhosts/xxxxxx/webspace/httpdocs/xxxxxx/programo/admin/index.php, line 53
[31-Jan-2018 19:39:47] PHP Parse error: syntax error, unexpected '[' in /var/www/vhosts/xxxxxx/webspace/httpdocs/xxxxxx/programo/chatbot/core/conversation/intialise_conversation.php on line 449
PHP 5.3 does not support short array notation, that was brought in in PHP 5.4
Which will cause this issue:
[31-Jan-2018 19:39:47] PHP Parse error: syntax error, unexpected '['
in
/var/www/vhosts/xxxxxx/webspace/httpdocs/xxxxxx/programo/chatbot/core/conversation/intialise_conversation.php
on line 449
TL;DR: It clearly states on the docs for system-requirements: https://github.com/Program-O/Program-O#system-requirements
Program O requires PHP version 5.3.0 or higher to function.
That means 5.4+ not 5.3.3.
I have a subdomain folder running on php 7. Globally my php version is 5.6 actually. When i run my project, i get a 500 internal error. Checking my error_log, i see this error
Fatal error: Call to undefined function Symfony\Polyfill\Mbstring\iconv_strpos() in /home/invoice/vendor/symfony/polyfill-mbstring/Mbstring.php on line 358
I tried to install this command composer require symfony/polyfill-icon in my subfolder (under the subdomain which is running on php 7) but then this is the result in the terminal
Warning: Ambiguous class resolution, "App\Http\Controllers\Auth\RegisterController" was found in both "/home/laravel/public_html/myproject/app/Http/Controllers/mNotify/Auth/RegisterController.php" and "/home/laravel/public_html/myproject/app/Http/Controllers/Auth/RegisterController.php", the first will be used.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
Parse error: syntax error, unexpected '?' in /home/laravel/public_html/myproject/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 233
When i look in the vendor file in my subfolder under the subdomain, the
Symfony\Polyfill\Mbstring\iconv is installed there but when i test from the terminal using php --ir iconv, it get Extension iconv is not present.
What is happening?
check if mod php < 7.0 has enabled to disabled it.
and enable mod php 7 or 7.1
I installed ibanner module from magentoconnect extension and that was not working so I deleted all the files and folder relatively to that module and now is displaying this error, plzz help me:
Fatal error: Class 'My_Ibanner_Helper_Data' not found in C:\wamp\www\magento\app\Mage.php on line 547
I'm new to PHP and I need to use some classes from an external library in my project.
My .php file, SMMain.php is in /Library/WebServer/Documents directory on my Mac. I placed the classes from the outside library right there next to it. All of these files are from the namespace Parse;. Some of the classes are in a directory called Internal.
No matter what require_once I try I get errors that the files are not found. Here's what I tried:
require_once('\Internal\Encodable.php');
produces this error:
Fatal error: require_once(): Failed opening required '\Internal\Encodable.php' (include_path='.:') in /Library/WebServer/Documents/SMMain.php on line 13
Next try:
require_once('/Internal/Encodable.php');
produces this:
Fatal error: require_once(): Failed opening required '.php' (include_path='.:') in /Library/WebServer/Documents/SMMain.php on line 7
I also tried:
require_once(realpath($_SERVER["DOCUMENT_ROOT"]) .'/Internal/Encodable.php');
Gives no error for the /Internal/Encodable file, but this produces another error:
Fatal error: Class 'ParseObject' not found in /Library/WebServer/Documents/SMMain.php on line 24
ParseObject.php is in the root directory together with my SMMain.php. So I tried requiring it like this:
require_once(realpath($_SERVER["DOCUMENT_ROOT"]) . '/ParseObject.php');
which gives this error:
Fatal error: Class 'ParseObject' not found in /Library/WebServer/Documents/SMMain.php on line 24
and if I try this:
require_once(realpath($_SERVER["DOCUMENT_ROOT"]) . 'ParseObject.php');
the error is:
Fatal error: require_once(): Failed opening required '/Library/WebServer/DocumentsParseObject.php' (include_path='.:') in /Library/WebServer/Documents/SMMain.php on line 17
So what's the solution?
Use require_once($_SERVER["DOCUMENT_ROOT"] .'/Internal/Encodable.php'); if the Internal directory is under the server document root and the Encodable.php is in there.
You can use the echo getcwd(); to see, where is the current working directory.
I am always doing that, when i call my index.php file (it handles all other files), to determinate, where is my base path, and store it in a constant. So lately, i will always include files with that path as an absolute path.
Following fatal error we are getting in apache errorlog. So IO operation increased and log file size is increasing. We dont know how we can findout and fix it?. Anyone knows pls share the details for our references.
Recently Upgraded Version : PHP ver from 5.2.17 to 5.3.14 after upgradation only following error we are getting, previously we didnt get this issue.
[Wed Sep 05 06:41:20 2012] [error] [client 80.12.96.14] PHP Fatal error: Cannot redeclare DomainNameInfo() (previously declared in /home/rackapps/conflg/ltnit.lg4:261) in /home/rackapps/lgconf/ltnit.lg4 on line 515, referer: http://in.mc1935.mail.yahoo.com/mc/welcome?.gx=1&.tm=1346806375&.rand=8k3tjpq0fmk8b
Note : Actually its a included files. We cant able to findout the landing php file. Because in that file we have included the above file. how we can findout the landingfile.
PHP Fatal error: Cannot redeclare DomainNameInfo()
This is an php error and not apache. You definied a function DomainNameInfo() on lltnit.lg4 on line 261 and on lgconf/ltnit.lg4 line 515 you defined the same function again .... there's your fault ....
hint: when you use inlcude() / require you can alternativ use the function include_once() / require_once() to avoid the error by including functions twice ...