• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI error

#1
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.
" If I looks more intelligence please increase my reputation."
Reply

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

#3
(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(); 
" If I looks more intelligence please increase my reputation."
Reply

#4
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
Reply

#5
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
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.