[solved] Uploads module error array_to_hash

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
irish
Forum Members
Forum Members
Posts: 101
Joined: Tue Jun 03, 2008 2:31 pm

[solved] Uploads module error array_to_hash

Post 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
Last edited by irish on Thu Sep 23, 2010 3:20 pm, edited 1 time in total.
dango
Translator
Translator
Posts: 11
Joined: Mon May 29, 2006 6:36 pm
Location: Switzerland

Re: Uploads module error array_to_hash

Post by dango »

I had the same problem. The reason was, that I didn' use the right parameters. I forgot the "category". Hope that helps.
irish
Forum Members
Forum Members
Posts: 101
Joined: Tue Jun 03, 2008 2:31 pm

Re: Uploads module error array_to_hash

Post by irish »

Thanks for the reply, I am using a category parameter.

cms_module module="Uploads" category="ContactsUpload" mode="upload"
vzw klemtoon
Forum Members
Forum Members
Posts: 92
Joined: Mon May 14, 2007 11:31 am

Re: Uploads module error array_to_hash

Post 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
vzw klemtoon
Forum Members
Forum Members
Posts: 92
Joined: Mon May 14, 2007 11:31 am

Re: Uploads module error array_to_hash

Post 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?
namloc
Forum Members
Forum Members
Posts: 10
Joined: Sun May 13, 2007 7:05 pm

Re: Uploads module error array_to_hash

Post 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
dmgd
Forum Members
Forum Members
Posts: 115
Joined: Tue Jun 06, 2006 1:10 pm
Location: TX

Re: Uploads module error array_to_hash

Post by dmgd »

Thanks namloc

I reverted to 1.19.2 and Uploads works.
Mark
dango
Translator
Translator
Posts: 11
Joined: Mon May 29, 2006 6:36 pm
Location: Switzerland

Re: Uploads module error array_to_hash

Post by dango »

I reported a ticket for this module #5432. --> http://dev.cmsmadesimple.org/bug/view/5432
vzw klemtoon
Forum Members
Forum Members
Posts: 92
Joined: Mon May 14, 2007 11:31 am

Re: Uploads module error array_to_hash

Post by vzw klemtoon »

it works, updates available. Thanx Calguy!!!
dango
Translator
Translator
Posts: 11
Joined: Mon May 29, 2006 6:36 pm
Location: Switzerland

Re: Uploads module error array_to_hash

Post 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.
vzw klemtoon
Forum Members
Forum Members
Posts: 92
Joined: Mon May 14, 2007 11:31 am

Re: Uploads module error array_to_hash

Post by vzw klemtoon »

mode=download doesnt excist isnt it?
i think its upload
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Uploads module error array_to_hash

Post 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
dango
Translator
Translator
Posts: 11
Joined: Mon May 29, 2006 6:36 pm
Location: Switzerland

Re: Uploads module error array_to_hash

Post 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.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Uploads module error array_to_hash

Post 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'}
irish
Forum Members
Forum Members
Posts: 101
Joined: Tue Jun 03, 2008 2:31 pm

Re: Uploads module error array_to_hash

Post by irish »

issue fixed, update to latest version uploads 1.11.5.
Post Reply

Return to “Modules/Add-Ons”