Hi
I recently upgraded the Uploads module to 1.8 and now the upload template is not showing any input fields. This is because the $input_xyz variables does not contain anything. In the Uploads.module.php all the inputs are defined as 'CLEAN_STRING's and I have not found any definitions in the language files. As you might have guessed I'm not an experienced CMSMS developer so any help is appreciated!
//Carl
Upload template inputs not generated
Re: Upload template inputs not generated
I also have this problem after doing a upgrade from 1.5 to 1.6.5 of CMSMS and at the same time upgrade Uploads to 1.9.1
The fields to be filled in as well as the browse file will not render on screen, and with debug enabled I get the following errors:
Notice: Undefined index: input_key in /var/www/tmp/templates_c/Uploads^%%49^492^4927941A%%module_db_tpl%3AUploads%3Buploadform_default.php
Notice: Undefined index: input_author in /var/www/tmp/templates_c/Uploads^%%49^492^4927941A%%module_db_tpl%3AUploads%3Buploadform_default.php on line 12
Notice: Undefined index: input_summary in /var/www/tmp/templates_c/Uploads^%%49^492^4927941A%%module_db_tpl%3AUploads%3Buploadform_default.php on line 18
Notice: Undefined index: hidden in /var/www/tmp/templates_c/Uploads^%%49^492^4927941A%%module_db_tpl%3AUploads%3Buploadform_default.php on line 23
Notice: Undefined index: input_browse in /var/www/tmp/templates_c/Uploads^%%49^492^4927941A%%module_db_tpl%3AUploads%3Buploadform_default.php on line 25
Any clues?
The fields to be filled in as well as the browse file will not render on screen, and with debug enabled I get the following errors:
Notice: Undefined index: input_key in /var/www/tmp/templates_c/Uploads^%%49^492^4927941A%%module_db_tpl%3AUploads%3Buploadform_default.php
Notice: Undefined index: input_author in /var/www/tmp/templates_c/Uploads^%%49^492^4927941A%%module_db_tpl%3AUploads%3Buploadform_default.php on line 12
Notice: Undefined index: input_summary in /var/www/tmp/templates_c/Uploads^%%49^492^4927941A%%module_db_tpl%3AUploads%3Buploadform_default.php on line 18
Notice: Undefined index: hidden in /var/www/tmp/templates_c/Uploads^%%49^492^4927941A%%module_db_tpl%3AUploads%3Buploadform_default.php on line 23
Notice: Undefined index: input_browse in /var/www/tmp/templates_c/Uploads^%%49^492^4927941A%%module_db_tpl%3AUploads%3Buploadform_default.php on line 25
Any clues?
Re: Upload template inputs not generated
Finally got it working.....the old templates simply do not work after upgrading Uploads module from 1.3 to 1.9.x
The upgrade does not even populate the default template in the db from the files. I had to manually copy the different template from the files into the database through the admin backend, and now the front end works again.
Found another bug, using the Upload module to list files on a page, the variable "name" to display the filename does not work anymore and i had to change the summary template to use "upload_name" instead.
First time any module given me such a trouble.
Mats
The upgrade does not even populate the default template in the db from the files. I had to manually copy the different template from the files into the database through the admin backend, and now the front end works again.
Found another bug, using the Upload module to list files on a page, the variable "name" to display the filename does not work anymore and i had to change the summary template to use "upload_name" instead.
First time any module given me such a trouble.
Mats
-
- Forum Members
- Posts: 14
- Joined: Tue Jul 08, 2008 6:26 am
Re: Upload template inputs not generated
I also had a lot of trouble with the Uploads module after upgrading an old CMSMS version <1.5 to 1.6.x and Uploads from 1.3 to 1.9.x
Much like Zigge sayed, I also found that no default templates were updated automatically and tags had changed. My error msgs were pretty much the same as described in this thread here or in this thread (or even in this one one dating back to 2006).
Finally, I deleted all template="..." information from the module call, updated the default template syntax and adjusted my individual templates. Then I set the default summary and detail templates as Standard just to change my own individual template set as Standard again. That finally worked for me.
Still have the major problem of not being able to call the search filter. If I add filter="" to the module call on a content page I get the following error msg:
The summary template begins with
Does anybody have an idea about this? Any help is much appreciated. Thx!
Much like Zigge sayed, I also found that no default templates were updated automatically and tags had changed. My error msgs were pretty much the same as described in this thread here or in this thread (or even in this one one dating back to 2006).
Finally, I deleted all template="..." information from the module call, updated the default template syntax and adjusted my individual templates. Then I set the default summary and detail templates as Standard just to change my own individual template set as Standard again. That finally worked for me.
Still have the major problem of not being able to call the search filter. If I add filter="" to the module call on a content page I get the following error msg:
Code: Select all
Fatal error: Call to undefined method Uploads::implode_with_key() in ...\modules\Uploads\action.default.php on line 298
Code: Select all
{if isset($input_filter) }
{$startform}
{$prompt_filter}{$input_filter}{$hidden_params}{$input_submit}
{$endform}
<br/>
{if isset($matches)}
{$matches} {$matchestext}
{/if}
{/if}