[SOLVED]Uploading an mp3 causes my admin session to log out

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Locked
blackhawk
Power Poster
Power Poster
Posts: 280
Joined: Mon Oct 20, 2008 6:07 pm

[SOLVED]Uploading an mp3 causes my admin session to log out

Post by blackhawk »

I am using cmsms 1.11.11
I created a file upload field under the news module. When I attempt to upload an .mp3 file inside an article (admin) page, it logs me out of my session and I have to log back into admin.

After logging back into the admin account, and traveling to my article page, I can see that the mp3 file was never uploaded either.

What are some things I can do to help investigate why I get booted on file uploads?

Thanks
Last edited by blackhawk on Fri Oct 10, 2014 8:28 pm, edited 1 time in total.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 729
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: Uploading an mp3 causes my admin session to log out

Post by JohnnyB »

What are the server's error logs showing? Admin log?

Be sure that the News settings will allow mp3 uploads. See option:
Allow only files with these extensions to be uploaded:
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
blackhawk
Power Poster
Power Poster
Posts: 280
Joined: Mon Oct 20, 2008 6:07 pm

Re: Uploading an mp3 causes my admin session to log out

Post by blackhawk »

Thank you JohnnyB. You gave me more knowledge on prepping. But these steps didn't work. The server logs don't say any apache or mysql errors happened. And I added mp3 as an option for uploads.

It doesn't matter if the mp3 is 9MB or 35MB in size...it will not upload...

The funny thing is that I can upload photos (i.e. jpg's), but just not mp3's...

perhaps this is a new bug related issue with version 1.11.11??? or can other users upload mp3's through the news module in this version?

thanks
JohnnyB
Dev Team Member
Dev Team Member
Posts: 729
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: Uploading an mp3 causes my admin session to log out

Post by JohnnyB »

It works for me with latest News using CMSMS 1.11.11.
I can upload via the "File" custom field and via TinyMCE upload.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
blackhawk
Power Poster
Power Poster
Posts: 280
Joined: Mon Oct 20, 2008 6:07 pm

Re: Uploading an mp3 causes my admin session to log out

Post by blackhawk »

Your feedback helps me out a lot! Let me keep trying things...
blackhawk
Power Poster
Power Poster
Posts: 280
Joined: Mon Oct 20, 2008 6:07 pm

Re: Uploading an mp3 causes my admin session to log out

Post by blackhawk »

I found a work-around until I am able to automatically upload mp3s...

First I created a text input field definition, and I am using it to write the name of my audio files.

Then within the details template find this field and wrap it with the audio element for HTML5.

So yes, I would have to manually upload the mp3 to a destination to my server, and then manually type the name of the file to this new field. But I'm ok with that until I find a better way to upload the audio.

Thanks again!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: [SOLVED]Uploading an mp3 causes my admin session to log

Post by Dr.CSS »

Have you check your system info page for upload limits..?
blackhawk
Power Poster
Power Poster
Posts: 280
Joined: Mon Oct 20, 2008 6:07 pm

Re: [SOLVED]Uploading an mp3 causes my admin session to log

Post by blackhawk »

ahhhh - I see it...

Maximum Post Size (post_max_size) 8MB
Maximum Upload Size (upload_max_filesize) 10MB

I can see that I can easily adjust these values from my PHP.ini file too! More importantly, I can see that my live server allows me to upload/post files up to 50MB, which is more than enough for each occurrence.

I also played with the following in my config file...
$config['max_upload_size'] = 50000000;

and last, made sure that mp3 was an acceptable file type.

I see my mp3's uploading now.

Thank you so much for helping me see the system information. This is the answer I needed!
Locked

Return to “The Lounge”