CodeIgniter Forums
CI error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: CI error (/thread-66271.html)



CI error - davy_yg - 09-30-2016

Hello,

A PHP Error was encountered
Severity: Notice
Message: Only variable references should be returned by reference
Filename: core/Common.php
Line Number: 257

Fatal error: Uncaught Error: Call to undefined function mysql_pconnect() in C:\xampp\htdocs\gsa\system\database\drivers\mysql\mysql_driver.php:91 Stack trace: #0 C:\xampp\htdocs\gsa\system\database\DB_driver.php(115): CI_DB_mysql_driver->db_pconnect() #1 C:\xampp\htdocs\gsa\system\database\DB.php(148): CI_DB_driver->initialize() #2 C:\xampp\htdocs\gsa\system\core\Loader.php(346): DB(Array, NULL) #3 C:\xampp\htdocs\gsa\system\core\Loader.php(1171): CI_Loader->database() #4 C:\xampp\htdocs\gsa\system\core\Loader.php(152): CI_Loader->_ci_autoloader() #5 C:\xampp\htdocs\gsa\system\core\Controller.php(51): CI_Loader->initialize() #6 C:\xampp\htdocs\gsa\application\site\core\MY_Controller.php(7): CI_Controller->__construct() #7 C:\xampp\htdocs\gsa\application\site\controllers\home.php(9): MY_Controller->__construct() #8 C:\xampp\htdocs\gsa\system\core\CodeIgniter.php(308): Home->__construct() #9 C:\xampp\htdocs\gsa\index.php(202): require_once('C:\\xampp\\htdocs...') #10 {main} thrown in C:\xampp\htdocs\gsa\system\database\drivers\mysql\mysql_driver.php on line 91


I am having problem with this CI program.  Can anyone help me tracing the error problem ?


Thanks in advance.


RE: CI error - pravins - 09-30-2016

Check this line
C:\xampp\htdocs\gsa\application\site\controllers\home.php(9)


RE: CI error - davy_yg - 09-30-2016

(09-30-2016, 10:29 PM)pravins Wrote: Check this line
C:\xampp\htdocs\gsa\application\site\controllers\home.php(9)


controllers/home.php

PHP Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class 
Home extends MY_Controller {
    
    var $data 
= array();
    
    public 
function __construct()
    {
        parent::__construct();
    

Line 9: 

PHP Code:
parent::__construct(); 



RE: CI error - pravins - 10-01-2016

I thinks this is the same one
http://forum.codeigniter.com/printthread.php?tid=64363

you must have resolved at that time(02-15-2016)...now its the same issue you are facing...its strange


RE: CI error - wolfgang1983 - 10-02-2016

Try rename your file name

Wrong


C:\xampp\htdocs\gsa\application\site\controllers\home.php


Correct

C:\xampp\htdocs\gsa\application\site\controllers\Home.php


RE: CI error - next468 - 11-29-2016

Hello! Very interesting topic, thank you raised it
sprint customer service chat