Page 1 of 1

[Solved]News field file upload mystery leading to null value

Posted: Fri Oct 03, 2014 12:26 pm
by blackhawk
I am using cmsms 1.11.11 and I have created a news field definition with the following paramters:

Code: Select all

type = file
public status
From the admin interface, I can see the "file" input box on every article page under the news module. When I choose a file to upload and submit, the file name then reflects on the admin news article page. Great.

The problem is that my news details template is producing "null" for the following values associated to my "files" field definition...

Code: Select all

$field->value
and..

Code: Select all

$field->displayvalue

Bottom line - How is it that I can see the name of my files I uploaded under my article pages in admin, but when I debug my value, and display value, I am getting null? The file images don't appear on the front of my site either....

FYI - the files I upload are not appearing under image manager, so I don't know if that is related to this null issue...

Any advice on debugging this mystery will be greatly appreciated!

Thanks!

Re: News field file upload mystery leading to null value

Posted: Fri Oct 03, 2014 1:01 pm
by blackhawk
I solved my issue by repeating basic steps on creating a news field definition in a clean version of 1.11.11, and I now see my files and all values. Sorry for the trouble.