Welcome Guest, Not a member yet? Register   Sign In
Codeigniter Hook Based Plugin System
#21

[eluser]Vheissu[/eluser]
This is very pecuilar. I wonder if it's some kind of paths issue. I am using the latest copy of XAMPP so the following;

Apache 2.2.17
MySQL 5.5.8
PHP 5.3.5

I know Windows and UNIX paths are different, this could perhaps be the reason. Need to fire up my Mac Mini and have a look, this is friggen troubling, haha.
#22

[eluser]NeoArc[/eluser]
Hi. Sometimes you have to use DIRECTORY_SEPARATOR in windows.
#23

[eluser]Unknown[/eluser]
Hi Timothy,

I have some issue with this library. Just downloaded fresh CI 2.1.0, added your library, import plugin.sql and get lots of error's:

Code:
A PHP Error was encountered

Severity: Notice

Message: Object of class Welcome could not be converted to int

Filename: libraries/Plugins.php

Line Number: 60

Code:
A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: libraries/Plugins.php

Line Number: 62

Code:
Fatal error: Call to a member function database() on a non-object in \application\libraries\Plugins.php on line 62

Here is autoload:

Code:
$autoload['libraries'] = array('database','plugins');
#24

[eluser]@MaxG[/eluser]
I have the same Error like Timothy
#25

[eluser]umefarooq[/eluser]
hi guys in php 5.3 and later variable passing by reference is deprecated that why getting error just change code at line 60 will work

Code:
$this->_ci &= get_instance();

to

Code:
$this->_ci = get_instance();
#26

[eluser]@MaxG[/eluser]
Heyo,

The Error comes just, if i activate the plugin or the plugin isnt in the DB.

Greets
#27

[eluser]Unknown[/eluser]
Hello Guys, I have a modified Plugins.php that seems to work. I thought I could share this to all of you Smile

I have attached the file. Hope it works for you. Cheers!




Theme © iAndrew 2016 - Forum software by © MyBB