kirobo kirobo - 2 months ago 25
Javascript Question

CJAX Installation with Codeigniter- Error

I am trying to use CJAX with Codeigniter. The help documents are really confusing and I could not get them to work.
I have downloaded the CJAX and extracted it to my base root folder, with application and htaccess files.

When I try to do in a view


I get the following error:

Severity: 8192

Message: Non-static method plugin::initiatePlugins() should not be
called statically, assuming $this from incompatible context

Filename: classes/core.class.php

Can somebody please guide me through an installation?
I tried to change function initiatePlugins() to public function initiagePlugins in core.class.php but to no avail.
My htaccess file is:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?ajax/(.*)$ ajax.php?$1 [NC,QSA,L]

I can really use some help. Thanks.


Checking code, seems like there is method and property with same name. In github source can be found

public static $initiatePlugins = array();//line 66

and also method called

function initiatePlugins(){/**/}//line 524

I would say something is mixed up with these two variables. Can't tell more than you should see with author on github or on his page.