kumarsivarajan / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

Comment (or any other plug-in) does not seem to work #558

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Have configured configuration.php & index.html file
2.When running the web-site the comment tab is displayed
3.It is not possible to edit the comment field.

On further investigation it seems that none of the plug-ins actually work, have 
tried Archiver, LostPassword and FileViewerEditor. Using version 2.5.12 
(latest).

Tried to investigate using Firebug, and it gives the error messages shown 
Modify.png file. Scripting complains "g is undefined" for comment plug-in and 
Network Error for archive - not too worried as probably access issue. But the 
biggest problem is that comment plug-in does not seem to work.

Saying that commenting "Dropboxplugin" in the index.html seems to take it out 
from the user as well. Any help would be appreciated. Already tried changing 
line 54 in PluginController.class.php to return isset($this->plugins[$id]); 
with no effect.

Best regards, Jukka

Original issue reported on code.google.com by syxthsen...@gmail.com on 11 Jul 2014 at 11:47

Attachments:

GoogleCodeExporter commented 8 years ago
You have defined plugin configuration (and other settings) under db array, it 
should be in top level.

$CONFIGURATION = array(
         "db" => array(
             "type" => "mysql",
             ...
         ),
         "enable_mail_notification" => TRUE,
         "mail_notification_from" => "webmaster@syxthsense.com",
         "plugins" => array(
             "Comment" => array(),
             "Archiver" => array(
                 "compressor" => "ziparchive"
             )  
         )               
     )
 );

Original comment by samuli.j...@gmail.com on 11 Jul 2014 at 2:07

GoogleCodeExporter commented 8 years ago
Kiitos Samuli! Now the next problem, when I get the Comment plug-in activated 
and then get Mollify - Request Failed - response. Looking at the firebug it 
indicates the following:-
------------
<br />
Fatal error:  Call to a member function getHandler() on a non-object in 
E:\webroot\support\mollify\backend\plugin\Comment\CommentServices.class.php on 
line 60<br />
------------
This is the last line on the class file as follows:-
    return $this->env->plugins()->getPlugin("Comment")->getHandler();

I actually get similar error when I try to use Compressed Archive
---
<br />
Fatal error:  Call to a member function getArchiveManager() on a non-object in 
E:\webroot\support\mollify\backend\plugin\Archiver\ArchiverServices.class.php 
on line 150<br />
----
private function archiveManager() {
return $this->env->plugins()->getPlugin("Archiver")->getArchiveManager();
        }
Any ideas? Index.html should be OK, and configuration.php.

Original comment by syxthsen...@gmail.com on 14 Jul 2014 at 10:38

Attachments:

GoogleCodeExporter commented 8 years ago
Maybe something to do with the PluginController.class.php ? Maybe not 
recognizing the folder structure. Similarly cannot get notificator plug-in to 
activate. 

Original comment by syxthsen...@gmail.com on 15 Jul 2014 at 12:20

GoogleCodeExporter commented 8 years ago
It's a bit weird problem.

It would seem like the plugin is not registered (as the error is "Call to a 
member function getHandler() on a non-object" -> getPlugin must return NULL 
etc). But since it is the CommentServices class that gets this error, it 
actually must be registered (it is the plugin setup function that registers the 
service instance, and plugin setup gets called only when plugin is registered).

Haven't heard from or seen this before, would require me getting this error in 
my development environment so I could debug it, but unfortunately I don't.

Original comment by samuli.j...@gmail.com on 15 Jul 2014 at 1:27

GoogleCodeExporter commented 8 years ago
I'll set up the Mollify on an other development PC to see if the error repeats 
(it does on this development PC - Windows - and on CentOS live data server). 
I'll let you know if I figure something out.

Original comment by syxthsen...@gmail.com on 17 Jul 2014 at 5:34

GoogleCodeExporter commented 8 years ago
I have a windows dev server, Mac dev server and a linux dev server, none of 
these have this problem. Also no other user have reported this, so can't 
imagine how you could have the same problem on several platforms. Are you sure 
you have "clean" installation?

If you can get me access to a test server where this occurs, I could take a 
look (FTP/SSH so I can modify files, and of course HTTP)

Original comment by samuli.j...@gmail.com on 18 Jul 2014 at 6:39

GoogleCodeExporter commented 8 years ago
Closing until further info

Original comment by samuli.j...@gmail.com on 4 Sep 2014 at 10:53