Page 1 of 2
[solved] Uploads module error array_to_hash
Posted: Mon Sep 13, 2010 4:09 pm
by irish
Just upgraded from 1.6.6 -> 1.8.2 and installed the Uploads module. Getting this error when calling the page using mode="upload":
Fatal error: Call to undefined method Uploads::array_to_hash() in D:\workspace\Adikat\modules\Uploads\action.upload.php on line 79
CMS Version 1.8.2
Current PHP Version (phpversion): 5.2.9-2
Installed Modules
CMSMailer 2.0
FileManager 1.0.2
MenuManager 1.6.5
ModuleManager 1.4
News 2.10.6
nuSOAP 1.0.2
Printing 1.1.0
Search 1.6.5
ThemeManager 1.1.1
TinyMCE 2.7.2
CGExtensions 1.19.5
Paypal 1.0.0
RequestQuote 1.0.0
SMS2 1.0
Members 1.0.2
GoogleCheckout 1.0.0
Contacts 1.0
ShopMadeSimple 0.2.5
CGSimpleSmarty 1.4.3
CompanyDirectory 1.4.1
FrontEndUsers 1.6.9
CartMadeSimple 0.2.2
FormBuilder 0.5.12
ModuleMaker 0.3.1
Pricing 1.0.0
API 1.0.0
ShortCode 1.0
CGBlog 1.3.2
Cron 0.0.1
Logger 1.0.0
Uploads 1.11.4
Re: Uploads module error array_to_hash
Posted: Mon Sep 13, 2010 7:28 pm
by dango
I had the same problem. The reason was, that I didn' use the right parameters. I forgot the "category". Hope that helps.
Re: Uploads module error array_to_hash
Posted: Tue Sep 14, 2010 1:48 pm
by irish
Thanks for the reply, I am using a category parameter.
cms_module module="Uploads" category="ContactsUpload" mode="upload"
Re: Uploads module error array_to_hash
Posted: Tue Sep 14, 2010 3:54 pm
by vzw klemtoon
same problem here. The code
{content_module module="Uploads" category="verslagen" mode="uploads"}
gives an error or doest show up at all.
Is there a working tag combination on the latest releases?
thanx in advance
Re: Uploads module error array_to_hash
Posted: Tue Sep 14, 2010 4:23 pm
by vzw klemtoon
kinda gives this error: Fatal error: Call to undefined method Uploads::array_to_hash() in /home/HX0058/domains/klemtoon.org/public_html/steinerschoolgent/modules/Uploads/action.upload.php on line 79
with this code: {cms_module module='Uploads' mode='upload' category="verslagen" template="default"}
anyone?
Re: Uploads module error array_to_hash
Posted: Wed Sep 15, 2010 9:57 pm
by namloc
It looks like CGExtensions back in version 1.19 has a function definition for array_to_hash , which is used by Uploads in 4 places but is missing in the latest CGExtensions 1.19.5
Dont know why it was removed but in version 1.19 its marked as to do remove
it looks like CG finally got areound to removing them in 1.19.5
Uploads will need to be changed to do without it
Re: Uploads module error array_to_hash
Posted: Wed Sep 15, 2010 11:16 pm
by dmgd
Thanks namloc
I reverted to 1.19.2 and Uploads works.
Re: Uploads module error array_to_hash
Posted: Thu Sep 16, 2010 5:44 am
by dango
I reported a ticket for this module #5432. -->
http://dev.cmsmadesimple.org/bug/view/5432
Re: Uploads module error array_to_hash
Posted: Thu Sep 16, 2010 7:17 pm
by vzw klemtoon
it works, updates available. Thanx Calguy!!!
Re: Uploads module error array_to_hash
Posted: Fri Sep 17, 2010 7:58 pm
by dango
I upgraded to the latest version uploads 11.5. Unfortunately I cannot figure out how to use the download function. It tried it like this, but it doesn't work. I don't see any files at all.
{cms_module module="Uploads" mode="download" category="Standard"}
Any help? Thanks.
Re: Uploads module error array_to_hash
Posted: Fri Sep 17, 2010 8:14 pm
by vzw klemtoon
mode=download doesnt excist isnt it?
i think its upload
Re: Uploads module error array_to_hash
Posted: Fri Sep 17, 2010 8:41 pm
by jmcgin51
vzw klemtoon wrote:
mode=download doesnt excist isnt it?
i think its upload
mode='upload' is for allowing an FEU to upload a file.
how about mode='url' or mode='link' if you want to provide a file for download
Re: Uploads module error array_to_hash
Posted: Sat Sep 18, 2010 8:54 pm
by dango
Still cannot figure out, how to write the correct statement, if i want to show downloadable files in category "Standard". Does anyone know the correct syntax? Could there still be an error in the uploads module? Thanks for further information.
Re: Uploads module error array_to_hash
Posted: Sun Sep 19, 2010 12:59 am
by jmcgin51
dango wrote:
Still cannot figure out, how to write the correct statement, if i want to show downloadable files in category "Standard". Does anyone know the correct syntax? Could there still be an error in the uploads module? Thanks for further information.
{cms_module module='Uploads' category='Standard' mode='summary' summarytemplate='yoursummarytemplatenamegoeshere'}
Re: Uploads module error array_to_hash
Posted: Thu Sep 23, 2010 3:20 pm
by irish
issue fixed, update to latest version uploads 1.11.5.