Codeigniter/Common.php and database/DB.php error

Asked

Viewed 657 times

1

I’m trying to open my DBO site but keep giving this error someone can help?

PHP Error was encountered

Severity: Notice

Message: Only variables should be passed by Ference

Filename: codeigniter/Common.php

Line Number: 148

PHP Error was encountered

Severity: Notice

Message: Only variables should be passed by Ference

Filename: database/DB.php Line Number: 133

Common: line 148

$objects[$class] =& instantiate_class(new $name());
return $objects[$class];

DB: line 133

$DB =& instantiate_class(new $driver($params));
  • 1

    Welcome John, to ensure you get an answer and that someone can help you please make a Tour through the platform to make you more familiar

  • Good afternoon John, please, if you can specify with details, because this is a generic error, it helps to post the code.

  • I put it right down!! The lines.

1 answer

0

  • How can I remove ?

  • @Joãobma just take the &

  • I took it made a mistake!

  • @Joãobma on the same lines as in the question? which version of the IC is?

  • Sorry, I don’t know what CL is

  • Codeigniter, short name CI xD.

  • 1.0 the version...

  • Can’t you update his version? this code was made in 2006.

  • I don’t know how to update him .

  • @Is Joãobma an old project or a new one? you can download version 2 or 3 and replace it with the version (folder) that is in your project, just need to know if it is new or old because there must be some incompatibilities.

  • The machine I use is linux, if you know the command to update ...

  • Codeigniter * * An open source application Development framework for PHP 4.3.2 or newer * * package Codeigniter * @Author Expressionengine Dev Team * copyright (c) 2008 - 2009, Ellislab, Inc. * License http://codeigniter.com/user_guide/license.html * link http://codeigniter.com * Since Version 1.0 * filesource

  • Add this code in some controller method to see which is the correct version echo CI_VERSION;

  • Type this code in linux ? If it is not.

  • @Joãobma vc type in php, from some controller of your project, so you will know the version of the framework

  • I don’t know about that, I’m new to working on linux...

Show 11 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.