Open javierwilson opened 11 years ago
@javierwilson My english isn't very good, can you speak spanish?
I think that this warning can be produced because the $data variable in MY_controller.php isn't pre-declared.
Can you add this line above the line 9 of application/core/MY_Controller.php:
$data = new stdClass();
:D
Gracias dacamail, ahora obtengo:
PHP Fatal error: Class 'Report' not found in /var/www/example.com/public_html/application/controllers/reports.php on line 11
Has probado este código antes con php 5.4 ?
Hola @javierwilson, nosotros las pruebas las hacemos con php 5.3.x pero no debería haber problema usando php 5.4.
El error que me comentas, es probable que sea debido a que el nombre fichero application/models/report.php está sin capitalizar, prueba a poner la primera R mayúscula de forma que quede application/models/Report.php
I just cloned fixmedia, created database.php based on database.php~ and got:
A PHP Error was encountered Severity: Warning Message: Creating default object from empty value Filename: core/MY_Controller.php Line Number: 9
seems like it has not properly loaded the "Report" class present at application/models/report.php if I try to load it manually (include) this error goes away but I then get a new one:
PHP Fatal error: Class 'ActiveRecord\Model' not found in /var/www/fixmedia/application/models/report.php on line 3
I am using PHP 5.4.17.
Anyone can help?