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

[eluser]Vheissu[/eluser]
Did you also make sure from the download you included in the "plugins" directory which sits outside of the application directory by default? It's possible that it can't find the plugins directory and is failing.
#12

[eluser]Timothy_[/eluser]
Yes I left that completely intact and the directory plugins is at root level /. The two example plugins are also located in there and I ran the sql script so I have the plugins table as well.

Anything else I could be missing?

Thanks for your help
#13

[eluser]Vheissu[/eluser]
Hey, no worries! Hmm. This is a really troubling issue I haven't seen happen before. It sounds like it could be server related, I'll see if I can replicate on that particular version of PHP tonight, I'm just at work at the moment. What happens if you load the library manually in a test controller? Do you still get the 500 error or some other kind of error.
#14

[eluser]Timothy_[/eluser]
Hey,

Sorry about the delay in reply, I was also at work.

Tried loading from within the controller and same error.

Please let me know if you need anymore information.

This is almost a clean install of CI 2.0.2 and as I have said other libraries seem to be working normally.

Thanks,

Tim
#15

[eluser]Timothy_[/eluser]
Hello Vheissu,

Just wanted to see if you were able to reproduce the issue I am getting?

If not could you perhaps tell me what version of PHP/CI you are using.

I have tried doing a basic debug but it's slow work because it is such a big library.

Thanks,

Tim
#16

[eluser]Timothy_[/eluser]
Hello,

I have tracked down the line where your library is crashing.

Its line <b>184</b>

Code:
// If the file was included
@include_once $this->plugins_dir.$name."/".$name.".php";

I echoed $this->plugins_dir.$name."/".$name.".php"; and the paths seems fine.

I appreciate that you are probably very busy, however it would be great if you could give me an indication if you are likely to pursue this in the near future.

Thanks,

Tim
#17

[eluser]Timothy_[/eluser]
Hello,

I also tested on a clean version of CI 2.0.2 on PHP Version 5.3.5.

Same 500 internal server error so I don't think this is just my problem.

Thanks,

Tim
#18

[eluser]Vheissu[/eluser]
Out of curisosity are you loading a plugin you've made yourself or a plugin that came with the library? The library expects a filename of the same name as it's parent folder in lowercase to be there. So if you have a plugin called 'news' (that's the folder name) then a file called 'news.php' is expected inside of that folder.

Looks like it could be trying to load a plugin file that isn't correct. Case of the name is very important.
#19

[eluser]Timothy_[/eluser]
Hello,

I haven't gotten to the stage of creating plugins as it's very difficult to ignore a 500 internal server error whenever I include your library.

I am using the two examples you have included.

plugins -> helloworld -> helloworld.php
plugins -> cimarkdown -> cimarkdown.php
plugins -> cimarkdown -> markdown.php

I have tried on two seperate OS's, Ubuntu and Snow leopard. I have tried two different versions of PHP 5.3.3 and PHP 5.3.5 and I have tried with a completely new downloaded version of CI 2.0.2

As I mentioned I echoed out the paths before the include statement and they are fine and match the files perfectly.

I havent changed your file structure, I copied and pasted all the files very carefully.

Thanks,

Tim
#20

[eluser]Timothy_[/eluser]
Hello Vheissu,

Which version of PHP and CI are you running?

Thanks,

Tim




Theme © iAndrew 2016 - Forum software by © MyBB