EllisLab text mark
Advanced Search
2 of 2
2
   
Codeigniter Hook Based Plugin System
Posted: 20 August 2011 08:50 AM   [ Ignore ]   [ # 21 ]   [ Rating: 0 ]
Joined: 2010-06-17
163 posts

Hi. Sometimes you have to use DIRECTORY_SEPARATOR in windows.

 
Posted: 20 August 2011 08:37 PM   [ Ignore ]   [ # 22 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-08
304 posts

I was using the constant FCPATH to set the default path, but found it to be unreliable. So now I’m using APPPATH and replacing the /application port of it and it seems to work. Would love for people to test though. Also did some optimisation on queries to stop unnecessary overhead.

For the paths issue, I’ve forced it by default to use forward slashes as they seem to work on NIX file systems and Windows file systems.

 Signature 

Plenty Parser - Parser library WolfAuth - Role Based Authentication library | CI Smarty - Smarty integration for Codeigniter 2.0+ | CI Plugins System - A simple hooks system.

 
Posted: 22 August 2011 08:21 PM   [ Ignore ]   [ # 23 ]   [ Rating: 0 ]
Avatar
Joined: 2009-05-24
119 posts

Hello Vheissu,

It seems you have fixed the issue I posted relating to the paths, however I am still getting a 500 internal server error.

This time something different happens though. The entire server hangs for about 10 seconds before the crash.

It happens when Line 195 is called

do_action('install_' $name); 

I am on Snow Leopard
PHP 5.3.5

Thanks,

Tim

 Signature 

Everything’s under control…

 
Posted: 28 August 2011 06:20 PM   [ Ignore ]   [ # 24 ]   [ Rating: 0 ]
Avatar
Joined: 2009-05-24
119 posts

Hi Vheissu,

How are things?

I’m still trying to find a resolution to my latest problem with this library.

When I comment out the following function starting on line 576 the library starts working again.

function do_action($name$arguments "")
{
    
return Plugins::instance()->do_action($name$arguments);

I hope you are still keen to help me out with this because I’m really keen to use this library.

Thanks,

Tim

 Signature 

Everything’s under control…

 
Posted: 31 August 2011 10:19 PM   [ Ignore ]   [ # 25 ]   [ Rating: 0 ]
Avatar
Joined: 2009-05-24
119 posts

Hello,

Is anyone else able to confirm that this a problem? Or alternatively confirm that this library is working perfectly?

Can anyone else recommend a plugin library for codeigniter?

Any help would be appreciated.

Thanks,

Tim

 Signature 

Everything’s under control…

 
Posted: 12 March 2012 03:28 PM   [ Ignore ]   [ # 26 ]   [ Rating: 0 ]
Joined: 2012-03-12
1 posts

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:

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 
A PHP Error was encountered

Severity
Notice

Message
Trying to get property of non-object

Filename
libraries/Plugins.php

Line Number
62 
Fatal errorCall to a member function database() on a non-object in \application\libraries\Plugins.php on line 62 

Here is autoload:

$autoload['libraries'= array('database','plugins'); 
 
Posted: 07 November 2012 09:09 AM   [ Ignore ]   [ # 27 ]   [ Rating: 0 ]
Joined: 2012-10-27
23 posts

I have the same Error like Timothy

 
Posted: 08 November 2012 01:30 AM   [ Ignore ]   [ # 28 ]   [ Rating: 0 ]
Avatar
Joined: 2008-09-11
758 posts

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

$this->_ci &= get_instance(); 

to

$this->_ci get_instance(); 
 Signature 

CI,JQuery,Google Maps | widget with CI loader | Thumbnail, Image Resize, Image Crop Helper | CI shortcode

 
Posted: 08 November 2012 09:46 AM   [ Ignore ]   [ # 29 ]   [ Rating: 0 ]
Joined: 2012-10-27
23 posts

Heyo,

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

Greets

 
Posted: 10 January 2013 06:59 AM   [ Ignore ]   [ # 30 ]   [ Rating: 0 ]
Joined: 2013-01-10
1 posts

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!

File Attachments
Plugins.zip  (File Size: 5KB - Downloads: 51)
 
2 of 2
2