[SOLVED]Problems with FEU Imageuploads into Gallery

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
xxtomxx
Forum Members
Forum Members
Posts: 20
Joined: Tue Jan 03, 2012 10:24 pm

[SOLVED]Problems with FEU Imageuploads into Gallery

Post by xxtomxx »

I hope someone can help me because I have tried to find a solution for the problem since 2 nights.

I have to realize an image upload in the gallery for FEU. I found the step by step description hier http://forum.cmsmadesimple.org/viewtopi ... 06#p252006

now I have 2 problems:

1. the FEU is able to upload an image into the gallery, but I can't configure a redirection page. After the succsessful upload the use always get the same page without an uploadfield, but the layout of the page is corrupt. Page source started with body tag (without all the hade stuff).

So the question is: How can I configure a special redirection page???


2. I have on my serverside site a special behavior, what I haven't on my localost.
The user also can upload succsessful an image and after the upload the user get the bad layout.
Additional he get an error message

Fatal error: Call to a member function _AddFileToDB() on a non-object in /www/htdocs/ ..... /WEB/lib/classes/class.usertagoperations.inc.php(265) : eval()'d code on line 4


Both have the same sources.

Could anybody help?



Infos von localhost
----------------------------------------------
Cms Version: 1.11.11
Installed Modules:
CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.5
MenuManager: 1.8.6
MicroTiny: 1.2.7
ModuleManager: 1.5.8
News: 2.14.4
Search: 1.7.11
ThemeManager: 1.1.8
TemplateExternalizer: 2.1.3
FormBuilder: 0.8.1.1
Captcha: 0.4.6
Guestbook: 1.4_RC2
CGExtensions: 1.42.2
FrontEndUsers: 1.24.1
JM_Forum: 1.0.0
Statistics: 1.1.3
OwnersManual: 1.0.3
MysqlDump: 1.3.1
SelfRegistration: 1.8.2
Gallery: 2.0.1
CustomContent: 1.10
CGSimpleSmarty: 1.7.4
Uploads: 1.18.4
FormBrowser: 0.4.2

Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 2000000
url_rewriting: none
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale: de_DE.UTF8
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:
phpversion: 5.5.9-1ubuntu4.6
md5_function: An (Ja)
gd_version: 2
tempnam_function: An (Ja)
magic_quotes_runtime: Aus (Nein)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 30
output_buffering: 4096
safe_mode: Aus (Nein)
file_uploads: An (Ja)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /var/lib/php5 (1733)
session_use_cookies: An (Ja)
xml_function: An (Ja)
xmlreader_class: An (Ja)

Server Information:
Server Api: apache2handler
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.41
Server Db Grants: Gefunden eine "Alles gewähren"-Anweisung, die als geeignet scheint
Server Time Diff: Keine Abweichung der Zeit im Dateisystem gefunden

----------------------------------------------


Infos vom SERVER
----------------------------------------------
Cms Version: 1.11.11
Installed Modules:
CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.5
MenuManager: 1.8.6
MicroTiny: 1.2.7
ModuleManager: 1.5.8
News: 2.14.4
Search: 1.7.11
ThemeManager: 1.1.8
TemplateExternalizer: 2.1.3
FormBuilder: 0.7.3
Captcha: 0.4.6
Guestbook: 1.4_RC2
CGExtensions: 1.42.2
FrontEndUsers: 1.24.1
JM_Forum: 1.0.0
Statistics: 1.1.3
OwnersManual: 1.0.3
MysqlDump: 1.3.1
SelfRegistration: 1.8.2
Gallery: 2.0.1
CustomContent: 1.10
CGSimpleSmarty: 1.7.4
Uploads: 1.18.4
Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 200000000
url_rewriting: mod_rewrite
page_extension: /
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale: de_DE.UTF8
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
Php Information:
phpversion: 5.5.22-nmm1
md5_function: An (Ja)
gd_version: 2
tempnam_function: An (Ja)
magic_quotes_runtime: Aus (Nein)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 30
output_buffering: An
safe_mode: Aus (Nein)
file_uploads: An (Ja)
post_max_size: 200M
upload_max_filesize: 200M
session_save_path: Keine Prüfung, da eine „open basedir“-Beschränkung aktiviert ist
session_use_cookies: An (Ja)
xml_function: An (Ja)
xmlreader_class: An (Ja)
Server Information:
Server Api: apache2handler
Server Db Type: MySQL (mysqli)
Server Db Version: 5.6.23
Server Db Grants: Gefunden eine "Alles gewähren"-Anweisung, die als geeignet scheint
Server Time Diff: Keine Abweichung der Zeit im Dateisystem gefunden
----------------------------------------------
Last edited by xxtomxx on Sun Mar 22, 2015 3:01 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Problems with FEU Imageuploads into Gallery

Post by Jos »

the two issues might be related to the same fatal error you described. That error is caused by the udt. Probably because some old function is used.

You can try if it works when you comment out all the code in the udt by putting all lines between /* and */

In the meantime I will look into the udt when there is some free time here at Geekmoot in Ghent.
xxtomxx
Forum Members
Forum Members
Posts: 20
Joined: Tue Jan 03, 2012 10:24 pm

Re: Problems with FEU Imageuploads into Gallery

Post by xxtomxx »

Jos -THANK you. :D

I commented out the UDT and it works fine on localhost and server.
The upload was succesful, I getno error message and the redirect works.
Great.

But will I run in problems when the UDT not works?
What function have the UDT? (only to set the params date, summary and description)

Tom
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Problems with FEU Imageuploads into Gallery

Post by Jos »

xxtomxx wrote:What function have the UDT? (only to set the params date, summary and description)
That's correct
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Problems with FEU Imageuploads into Gallery

Post by Jos »

You can try to replace the complete UDT code with this:

Code: Select all

$addfile = Gallery_utils::AddFileToDB($params['name'], '', Date('Y-m-d H:i:s'), 1, $params['summary'], $params['description']);
I didn't test this myself
xxtomxx
Forum Members
Forum Members
Posts: 20
Joined: Tue Jan 03, 2012 10:24 pm

Re: Problems with FEU Imageuploads into Gallery

Post by xxtomxx »

Thank you :)
It works.
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: [SOLVED]Problems with FEU Imageuploads into Gallery

Post by Jos »

Great! I edited the original forumpost to the right UDT.
It worked 5 years ago, but in the meantime functions have been moved.

Thank you for your well documented issue-report.
Post Reply

Return to “Modules/Add-Ons”