Resolved Bug

This bug has been marked as resolved.

Upload file options have disappeared from file manager

Permalink 8 0 Browser Info Environment
After I installed the free add ons: html5 audio and html5 video the upload options have all disappeared from file manager, so that I cannot upload any files anymore

Status: Resolved
View Best Answer
Mnkras replied on at Permalink
Can you please post a screenshot
minvalp replied on at Permalink 1 Attachment
I have the same issue after installing those 2 html5 addons. I note that the bookmark icon upload does work ok so it looks like a button render problem.

I have another c5 site on the same server, same version, but not showing this problem.

Screen shot attached. Many thanks!
Mnkras replied on at Permalink
That is very odd, It seems it is because of those addons, I would check with the addon author.
minvalp replied on at Permalink
My company and I are keen to develop html5 based sites and its a shame this plugin is causing problems. Would it be possible for c5 and the author to come up with a plan to track down the issue, or if this is problematic withdraw this plugin until it can be resolved.

One of my main selling points for c5 is the relatively rigorous approach to plugin and theme acceptance into the Marketplace. I have had issues with Wordpress themes bringing in malware injections so this is a key attribute of c5.

We would be happy to offer some cross-platform testing resource if it would help.

Thank you
12345j replied on at Permalink
I don't think my addons are causing that. (I've never experienced it, and theres no code that would do something like that.) But maybe. Have you tried uninstalling the addons?
beudel replied on at Permalink
ive got the same issue. when i install html5 video the fie-upload dissapeared. and after uninstall it doesn't come back anymore. i've got already 2 websites with the same issue and the same add-on issue.
minvalp replied on at Permalink
For info, my server environment uses an older version of PHP to support a legacy modx site. Apache 2.2.15 with PHP 5.3.2

I can provide a snapshot of the c5 site files and database if that would help...

rmorales replied on at Permalink
I installed the latest official release and file upload was working fine. After some working on the site my the owner of it, the option to upload files dissappeared. I searched for a solution and found a note here that the problem had been solved in the latest development release, so I installed it. Now we have a tab for Add Files, but no text area for the name nor butttons to explore the file system nor upload any file.

After reading this thread, I went to check for the addons, but everytime I press the Edit button I get the following message:

An unexpected error occurred.

mysql error: [1146: Table 'mogescul.SystemAntispamLibraries' doesn't exist] in EXECUTE("select saslHandle from SystemAntispamLibraries where pkgID = '1' order by saslHandle asc").

Any ideas on what to do now to fix this other problem?
mobsmarketing replied on at Permalink 1 Attachment
just installed same html5 plugin and now i cannot upload through the file manager. This is the only change I've made to the site in a week.

current install of C5

screenshot shows 2 sites I have that are up to date on C5 install, the one behind doesn't have html5 plugin, the one in front does. note the missing upload buttons on the one in foreground.
rmorales replied on at Permalink
Well, the cause is set. The question is now: how can we fix it?
timv replied on at Permalink
confirmed, No effect uninstalling, Am I best just reinstalling? only got a few hours in the site.
intervisionit replied on at Permalink
I've got the latest C5 and the same problem raised here as well after the install of the HTML5 player. Un-install did not help.
andrew replied on at Permalink
Please see the message I just posted. I think a fix is there.
andrew replied on at Best Answer Permalink
It looks like the HTML5 music and/or HTML5 video add-ons are the culprit. The problem is this, in the installation of the Html Video file:

$ogvAllowed= str_replace($allowOrig, $allowTo, $allowedExtensions);
Config::save('UPLOAD_FILE_EXTENSIONS_ALLOWED', $ogvAllowed);

Most sites don't have the UPLOAD_FILE_EXTENSIONS_ALLOWED set through the configuration process. You'd only have this set if you ever modified that list of extensions through concrete5. If you don't have it set it will be blank, and then the add-on sets it, which suddenly means the only file that can be uploaded is the new one that is added. This results in a blank list of file extensions set in the database.

To fix this on your sites, I would do run this query on your database:

delete from Config where cfKey = 'UPLOAD_FILE_EXTENSIONS_ALLOWED';

Then clear the cache from within your concrete5 dashboard. That will restore the list of extensions.

12345j can you please remove this code from your add-ons? Just let the people manually add it or give them instructions on how to add it.
andrew replied on at Permalink
An additional tip: if you ever need to get the list of allowed file extensions, just use the constant:


instead of referencing Config. That way, if no config value is set, the default values are used, and if a config value is set through the database, that one automatically overwrites the constant during the startup process. Either way, the constant is always valid.
gmstanford replied on at Permalink
Thanks Andrew - really useful solution. I am something of a newbie to c5, and certainly to MySQL databases, so the instruction to edit it was a bit daunting. Happily my host has Cpanel, and there is a tool called MyPHPadmin which made deleting the entry very easy. Hope this might be useful for others.
m1akidzone replied on at Permalink
I had this issue with 5.4 with some addons. I believe the fix for that version would be the same for this which was go to Dashboard > System and Settings > Allowed File Types (under Permissions and Access , right side) and add the extensions

flv, jpg, gif, jpeg, ico, docx, xla, png, psd, swf, doc, txt, xls, xlsx, csv, pdf, tiff, rtf, m4a, mov, wmv, mpeg, mpg, wav, avi, m4v, mp4, mp3, qt, ppt, pptx, kml, xml

back into the box. After that was done my upload button reappeared in my file manager. The php edit maybe a "permanent fix" but for those of us who aren't comfortable editing core files I believe the method I listed will work as well.

concrete5 Environment Information

# concrete5 Version

# concrete5 Packages
Add Multiple Pages (1.2), AddThis (1.0), Audio Library (1.0.4), blogga (1.0.), Clicky Web Analytics (1.2.0), Email List Signup (1.03), Facebook Like Button (1.0), Flash Gallery (1.2), Flickr Photos (1.1), Flowplayer Free (1.0.6), Galleria image gallery (2.0), Gallery (1.7.0), Google Plus One (1.0), Image Blank Target (1.0), Image Slider (1.0.2), Parent Link (1.0), Social Icons (1.1), Sortable Fancybox Gallery (1.14), Superfish (1.1.4), Tweetcrete (1.6.0), Youtube Gallery (1.0).

# concrete5 Overrides
blocks/superfish, themes/dark_chocolate_broad

# Server Software

# Server API

# PHP Version

# PHP Extensions
cgi, ctype, curl, date, dom, exif, filter, gd, gettext, hash, json, libxml, mbstring, mcrypt, memcache, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, Reflection, session, SimpleXML, SPL, standard, tokenizer, xml, xmlreader, xmlwriter, zip, zlib.

# PHP Settings
log_errors_max_len - 1024
max_execution_time - 5
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
memory_limit - 64M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 25M
memcache.max_failover_attempts - 20
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1