PHP 7 showing error on CodeIgniter v2 - mysql

I have an application build on CI v.2. It works fine on PHP 5.6 but on localhost XAMPP with PHP v7, I am getting the following error:
Severity: Warning
Message: Declaration of Home::index() should be compatible with MY_Controller_Admin::index($dt_params = Array)
Filename: controllers/home.php
Line Number: 0
Can someone help how to fix this ?

Related

Moodle: Installation failed - Coding Error Detected

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?

Class 'DebugBarFilter' not found in cakephp3 for server

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.

Flyway 3.2.1 info on OSX gives error 'Invalid version containing non-numeric characters'

Context: OSX 10.10.3, java 1.8_51, downloaded flyway: flyway-commandline-3.2.1-macosx-x64.tar.gz, database in MySQL 5.5 server
Unzipped tar, entered directory and changed flyway.conf to proper URL, username and password.
Tested the username/password -> works
When I do ./flyway info I get the following error:
ERROR Invalid version containing non-numeric characters. Only 0..9 and . are allowed. Invalid version:
A coworker has the same setup and she doesn't have this error, but the expected behaviour.
When I revert back to version flyway 3.1 it works as expected.
Any ideas what is wrong here?

Fatal error while using kartik\mpdf\Pdf in yii 2.0

I am getting following error online
Fatal error: Class 'kartik\mpdf\Pdf' not found in /home/junaidali3/public_html/magicsalon/config/web.php on line 12
where web.php is like following:
http://grab.by/GYjE
everything is working fine on wamp but when i try to run it online server it is giving fatal error
You must add this line to autoload_psr4.php :
'mPDF\\' => array($vendorDir . '/mpdf')
If mpdf extension is in root of vendor folder

Cakephp3 show syntax error in webserver

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