jQsafi / mollify

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

How to install a plugin in Multi-user mode (database configuration). #146

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm new to Mollify (1.6.5.6), and I can't find how to install a plugin in 
Multi-user mode (database configuration).

I see in the wiki how to install it via configuration.php, but it doesn't work 
in mysql mode.

Thanks.

Original issue reported on code.google.com by wwwfan...@gmail.com on 23 Oct 2010 at 4:04

Attachments:

GoogleCodeExporter commented 9 years ago
error:

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 5:59

Attachments:

GoogleCodeExporter commented 9 years ago
Plugin installation is same in all modes. Some plugins, however, may require 
database (such as event logger) and requires running updater.

Your error picture seems to be about file preview not working? If so, turn on 
server debugging and get server logs to see what's happening. Also, it seems 
that you are using IE, could you try with Firefox etc to rule out the browser 
factor.

Original comment by samuli.j...@gmail.com on 24 Oct 2010 at 6:38

GoogleCodeExporter commented 9 years ago
I try with Firefox and GOOGLE ,but have same problem.I execute update only list 
Registration plugin. And event plugin work normal. Just fileview plugin can not 
work.

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 7:23

Attachments:

GoogleCodeExporter commented 9 years ago
Try taking out the host_public_address setting

Original comment by samuli.j...@gmail.com on 24 Oct 2010 at 7:29

GoogleCodeExporter commented 9 years ago
{"folder_separator":"\\", "max_upload_file_size":134217728, 
"max_upload_total_size":134217728, "allowed_file_upload_types":[]}, 
"folders":[{"id":"MTpc", "name":"record", "parent_id":null, "root_id":"MTpc", 
"path":""}], "plugins":{"FileViewer":{"admin":false}, 
"EventLogging":{"admin":true}, "Registration":{"admin":true}}}

2010-10-24 15:39:56,031 [DEBUG] Request response: 200 
{"result":{"id":"MTpcY2xpcF9pbWFnZTAwMi5qcGc=","last_changed":"20101024142411","
last_modified":"20101024142411","last_accessed":"20101024153402","description":n
ull,"permission":"RW","preview":"\/preview\/MTpcY2xpcF9pbWFnZTAwMi5qcGc=\/info\/
?session=qrdru1b4kp41o7e804pf1n3hl0","view":{"embedded":"\/view\/MTpcY2xpcF9pbWF
nZTAwMi5qcGc=\/data\/embedded\/?session=qrdru1b4kp41o7e804pf1n3hl0","full":"http
:\/\/127.0.0.1\/mollify\/backend\/r.php\/view\/MTpcY2xpcF9pbWFnZTAwMi5qcGc=\/dat
a\/full\/?session=qrdru1b4kp41o7e804pf1n3hl0"}}}

2010-10-24 15:39:57,406 [DEBUG] REQUEST (GET): 
http://127.0.0.1/mollify/backend/r.php//preview/MTpcY2xpcF9pbWFnZTAwMi5qcGc=/inf
o/?session=qrdru1b4kp41o7e804pf1n3hl0

2010-10-24 15:39:57,750 [DEBUG] Request response: 200 
{"result":{"html":"<div id=\"file-preview-container\" style=\"overflow:auto; 
max-height:300px\"><img 
src=\"http:\/\/127.0.0.1\/mollify\/backend\/r.php\/preview\/MTpcY2xpcF9pbWFnZTAw
Mi5qcGc=\/content\/?session=qrdru1b4kp41o7e804pf1n3hl0\" 
style=\"max-width:400px\"><\/div>"}}

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 7:47

GoogleCodeExporter commented 9 years ago
"plugins":{"FileViewer":{"admin":false}, "EventLogging":{"admin":true}, 
"Registration":{"admin":true}}}

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 7:47

GoogleCodeExporter commented 9 years ago
Can you get server logs (php error log)?

Original comment by samuli.j...@gmail.com on 24 Oct 2010 at 7:52

GoogleCodeExporter commented 9 years ago
no php error log

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 7:54

GoogleCodeExporter commented 9 years ago
Well there should be, unless you have turned it off. If so, could you turn it 
on again. From the logs it seems you are running it on your localhost, so 
everything should be possible.

Original comment by samuli.j...@gmail.com on 24 Oct 2010 at 7:57

GoogleCodeExporter commented 9 years ago
I think reson is 
"plugins":{"FileViewer":{"admin":false}, "EventLogging":{"admin":true}, 
"Registration":{"admin":true}}}

but I don't know why ?

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 7:58

GoogleCodeExporter commented 9 years ago
What made you think that? I assure you, it has absolutely no relevance on this. 
This is only plugin info for the admin util, whether the plugin has admin view 
or not.

If you want to solve this, please get the server log as I cannot help you any 
further without it.

Original comment by samuli.j...@gmail.com on 24 Oct 2010 at 8:02

GoogleCodeExporter commented 9 years ago
I find error.log in apache.But I don't know whether it is you want.

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 8:08

Attachments:

GoogleCodeExporter commented 9 years ago
Oh yes, you have to put server debug mode on with setting
"debug" => TRUE

Original comment by samuli.j...@gmail.com on 24 Oct 2010 at 8:26

GoogleCodeExporter commented 9 years ago
I upload a jpg file success,but download it to view ,it's a blank. but file 
size is normal.

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 8:56

GoogleCodeExporter commented 9 years ago
I have to put "debug" => TRUE,but no error output in error.log

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 9:08

GoogleCodeExporter commented 9 years ago
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: 
SETTINGS: {host_public_address:http://130.120.2.95, timezone:Asia/Shanghai, 
enable_file_upload:1, enable_zip_download:1, enable_permission_update:1, 
enable_public_links:1, debug:1}, referer: http://130.120.2.95/mollify/
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: 
CONFIGURATION PROVIDER (MySQLConfigurationProvider): supported 
features={0:change_password, 1:description_update, 2:administration, 
3:permission_update, 4:user_groups, 5:permission_inheritance} auth=1, referer: 
http://130.120.2.95/mollify/
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: 
FEATURES: {limited_http_methods:, file_upload:1, folder_actions:1, 
file_upload_progress:, zip_download:1, change_password:1, description_update:1, 
permission_update:1, administration:1, user_groups:1, public_links:1, 
mail_notification:, file_view:1, file_preview:1, event_logging:1, 
registration:1}, referer: http://130.120.2.95/mollify/
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: 
FILESYSTEM: allowed_file_upload_types={}, referer: http://130.120.2.95/mollify/
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: 
SESSION: {user_id:4, groups:{}, username:game, default_permission:RW}, referer: 
http://130.120.2.95/mollify/
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: AUTH: 
is_authentication_required=1, is_authenticated=1, referer: 
http://130.120.2.95/mollify/
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: 
REQUEST: method=get, path={0:filesystem, 1:MTpcY2xpcF9pbWFnZTAwMi5KUEc%2C}, 
ip=130.120.2.95, params={session:801g82clqgamhdqbtcibuhkd64}, data=, referer: 
http://130.120.2.95/mollify/
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: SERVICE 
(FilesystemServices): is_auth_required=1, referer: http://130.120.2.95/mollify/
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: DB: 
SELECT id, name, path FROM mollify_folder where id='1', referer: 
http://130.120.2.95/mollify/
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: 
download [1:\\clip_image002.JPG], referer: http://130.120.2.95/mollify/
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: {}, 
referer: http://130.120.2.95/mollify/
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: DB: 
SELECT permission FROM ((SELECT permission, user_id, 1 AS 'category', 
(IF(user_id = '4', 1, IF(user_id = '0', 3, 2))) AS 'subcategory' FROM 
`mollify_item_permission` WHERE item_id = '1:\\\\clip_image002.JPG' AND 
(user_id in (0,4))) UNION ALL (SELECT permission, user_id, 2 AS 'category', 
(((4 - CHAR_LENGTH(item_id)) * 10) + IF(user_id = '4', 0, IF(user_id = '0', 2, 
1))) AS 'subcategory' FROM `mollify_item_permission` WHERE (item_id REGEXP 
'^1:\\\\$') AND (user_id in (0,4))) ) AS u ORDER BY u.category ASC, 
u.subcategory ASC, u.permission DESC, referer: http://130.120.2.95/mollify/
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: EVENT 
HANDLER: onEvent: 'filesystem', referer: http://130.120.2.95/mollify/
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: DB: 
INSERT INTO mollify_event_log (time, user, type, item, details) VALUES 
(20101024173057, 'game', 'filesystem/download', 
'e:\\\\record1\\\\clip_image002.JPG', 'item id=1:\\\\clip_image002.JPG 
(record)'), referer: http://130.120.2.95/mollify/
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: DB: 
INSERT INTO mollify_event_log (time, user, type, item, details) VALUES 
(20101024173057, 'game', 'filesystem/download', 
'e:\\\\record1\\\\clip_image002.JPG', 'item id=1:\\\\clip_image002.JPG 
(record)'), referer: http://130.120.2.95/mollify/
[Sun Oct 24 17:30:57 2010] [error] [client 130.120.2.95] MOLLIFY DEBUG: DB: 
INSERT INTO mollify_event_log (time, user, type, item, details) VALUES 
(20101024173057, 'game', 'filesystem/download', 
'e:\\\\record1\\\\clip_image002.JPG', 'item id=1:\\\\clip_image002.JPG 
(record)'), referer: http://130.120.2.95/mollify/

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 9:34

GoogleCodeExporter commented 9 years ago
So is that download, view and preview are not working?

When debug logging is set on, there should be just debug log entries
in the php log. Not sure what's wrong with your system if you don't
get them, but that's how it normally works. I just don't have anything
to work with if there is no server debug log, because as far as I know
right now there really are no errors etc, which makes it quite hard to
tell what is not working.

Original comment by samuli.j...@gmail.com on 24 Oct 2010 at 9:35

GoogleCodeExporter commented 9 years ago
Maybe you provide a configuration.php with mysql  can help me 

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 9:53

GoogleCodeExporter commented 9 years ago
It seems you have an extra line at the end of configuration.php, remove that. 
Any extra chars outside php tags may cause this.

Original comment by samuli.j...@gmail.com on 24 Oct 2010 at 11:59

GoogleCodeExporter commented 9 years ago
I remove all extra tags but have no effect.

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 3:25

GoogleCodeExporter commented 9 years ago
You don't need to remove all line feeds etc, just those that are outside the 
php tags. So there must be nothing outside <?php ?>.

But if your download fails, could you post an example jpg a) the original (the 
one that works) b) the one you have downloaded from Mollify (the one that does 
not work). I want to see what is the difference in them.

Original comment by samuli.j...@gmail.com on 24 Oct 2010 at 3:36

GoogleCodeExporter commented 9 years ago
I remove all extra tags but have no effect.Pls refer th error place to me 
.thank you!!!

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 3:37

Attachments:

GoogleCodeExporter commented 9 years ago
Please pay attention, I just noted that you don't have to remove all line 
breaks. I didn't say it's wrong, just very hard to read. You did remove the one 
extra line break from the end, but if that really didn't help, then move on to 
the question I asked.

Original comment by samuli.j...@gmail.com on 24 Oct 2010 at 3:42

GoogleCodeExporter commented 9 years ago
OK,I am sure there is nothing outside <?php ?>. And I attached the example jpg 
file.

a.jpg is the original ;  b.jpg  is download from mollify.

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 3:44

Attachments:

GoogleCodeExporter commented 9 years ago
OK, it is clear now that the downloaded file is corrupt. For some reason, the 
first byte sent is 0A, which is a line feed char.

So I think I was on a right track suspecting a extra char somewhere. If you 
have anything outside php tags, on any php file, it is added directly to the 
output. Naturally it will corrupt any file downloaded.

If you have modified any of the php files, make sure they don't have this 
problem. If not, then delete the configuration.php and write it from the 
scratch. This time use non-utf8 encoding as this could be also a BOM issue 
(http://bugs.php.net/bug.php?id=42312)

Original comment by samuli.j...@gmail.com on 24 Oct 2010 at 3:58

GoogleCodeExporter commented 9 years ago
I tried download xls, xls file size is correct but content became garbage

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 3:59

Attachments:

GoogleCodeExporter commented 9 years ago
Greate, I reinstall mollify and config it, then I can view jpg file success!!

But mollify can not support chines .

Original comment by wwwfan...@gmail.com on 24 Oct 2010 at 5:14

GoogleCodeExporter commented 9 years ago
That's great to hear.

Yes, chinese is not supported, but why do you say it "can not support"? All 
languages that can be written in utf-8 are possible, and is really matter of 
someone doing the localization (see 
http://code.google.com/p/mollify/wiki/HowToLocalize)

Original comment by samuli.j...@gmail.com on 24 Oct 2010 at 5:23

GoogleCodeExporter commented 9 years ago

Original comment by samuli.j...@gmail.com on 25 Oct 2010 at 6:06