kumarsivarajan / mollify

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

Share Plugin Issue #482

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have been waiting with this issue since the beginning of Mollify 2.0, but it 
doesn't seem to get fixed so far, or I'm doing something wrong myself.

The Share plugin simply does not work for my installation of Mollify and 
haven't worked til the beginning of Mollify 2.0.

Namely when a user clicks on a file and an item in his/her account they get 
"Request Failed" while seeing the Share window pop up, but can't do anything in 
there.

In PHP Error log i see the following 2 lines that appear after the action named 
above has been executed:

"MOLLIFY ERROR: ServiceException: Unknown service 'share'="

"MOLLIFY ERROR: 
{0:{file:PATH_TO_MOLLIFY\backend\include\MollifyBackend.class.php, line:75, 
function:getService, class:ServiceEnvironment, type:->, args:{0:Request}}, 
1:{file:PATH_TO_MOLLIFY\backend\r.php, line:63, function:processRequest, 
class:MollifyBackend, type:->, args:{0:Request}}}"

Index.html has the following configuration:

$(document).ready(function(){   
                mollify.App.init({
                    "service-path": "backend/", // service path
                    "default-view-mode": "list",    // default view mode
                    "icon-view-thumbnails": true,   // show icon thumbnails in icon view mode
                    "list-view-columns": {
                        "name": { width: 250 },
                        "size": { width: 50 },
                        "type": { width: 50},
                        "share-info": { width: 100},
                        "file-modified": { width: 150 }
                    }}, [
                        new mollify.plugin.ItemDetailsPlugin({
                            "jpg,tiff,png": {
                                "last-modified" : {},
                                "size": {},
                                "exif": {},
                            },
                            "*": {
                                "last-modified" : {},
                                "size": {}
                            }
                        }),
                        new mollify.plugin.FileViewerEditorPlugin(),
                        new mollify.plugin.SharePlugin(),
                        new mollify.plugin.DropboxPlugin()
                    ]
                );
            });

Configuration.php has the following configuration regarding the Plugin section:

$PLUGINS = array(
        "LostPassword" => array(),
        "ItemDetails" => array(),
        "Archiver" => array(),
        "Share" => array(),
        "FileViewerEditor" => array(
            "viewers" => array(
                "Image" => array("gif", "png", "jpg", "jpeg"),
                "TextFile" => array("txt", "js", "css", "xml", "html", "xhtml", "py", "c", "cpp", "as3", "sh", "java", "sql", "php"),
                "Zoho" => array("doc", "docx", "xls", "xlsx", "ppt", "pptx", "pps", "odt", "ods", "odp", "sxw", "sxc", "sxi", "wpd", "pdf", "rtf", "csv", "tsv"),
                "JPlayer" => array("mp3", "ogg"),
                "FlowPlayer" => array("mp4", "f4v"),
            ),
            "previewers" => array(
                "Image" => array("gif", "png", "jpg", "jpeg"),
            ),
            "editors" => array(
                "TextFile" => array("txt", "js", "css", "xml", "html", "xhtml", "py", "c", "cpp", "as3", "sh", "java", "sql", "php"),
            ),

I hope this is enough information.

PS: The FileViewerEditor plugin is alos not working, the window pops up as if 
there should be something in the window, but it's blank, no error occures 
during the window nor is there anything in PHP Error Log.

Thanks in advance.

Original issue reported on code.google.com by Logic...@gmail.com on 27 Oct 2013 at 6:05

GoogleCodeExporter commented 8 years ago
Could you dig out the http request that is sent when the error occurs? The 
error message indicates that there is no backend service registered, but also 
that it looks like the service name used is "share=" with extra = in the end.

Or can you get me access to your site so I could see these myself?

Original comment by samuli.j...@gmail.com on 27 Oct 2013 at 6:28

GoogleCodeExporter commented 8 years ago
I replied to you via email including this issues ID and provided access 
information to my servers Mollify installation.

I will update this post as well as soon as any fixes or new information is 
available.

Original comment by Logic...@gmail.com on 27 Oct 2013 at 2:44

GoogleCodeExporter commented 8 years ago
OK, only now realized that you did not make the syntax change in 
configuration.php when moving into version 2.0.

Plugins are no more defined in separate variable, but instead inside the 
$CONFIGURATION array, like this:

    $CONFIGURATION = array(
        "db" => array( ... ),
        ...
        "plugins" => array(
            "Share" => array(),
            ...
        )
    );

So this should fix the share plugin error.

For the empty folder issue, I was cleaning unnecessary things out, but I guess 
something was left there. You can fix that "Undefined index: folder_actions" by 
adding "folder_actions" into the list in Feature.class.php file. This will be 
removed, but this way you can remove the error until next version.

Original comment by samuli.j...@gmail.com on 27 Oct 2013 at 4:28

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
You are, yet again, correct. To anyone else having the same problem, make sure 
you have upgraded your "configuration.php" to Mollify 2.0 requirement needs.

I would, however, recommend making a "sample-configuration.php" in the default 
package that ships with Mollify when someone downloads it. To add random 
database, plugins and even settings configuration so it would be easy to 
navigate and understand what's going on.

Original comment by Logic...@gmail.com on 27 Oct 2013 at 7:41

GoogleCodeExporter commented 8 years ago
But there is :) in folder "backend/example"

Original comment by samuli.j...@gmail.com on 28 Oct 2013 at 6:28

GoogleCodeExporter commented 8 years ago
Closing this, let me know if there is something else.

Original comment by samuli.j...@gmail.com on 28 Oct 2013 at 9:54