Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
dad7732
RavenNuke(tm) Development Team



Joined: Mar 18, 2007
Posts: 1242

PostPosted: Wed Dec 22, 2010 10:58 am Reply with quote

ravenworks wrote:

I've checked all the permissions for /userfiles/ as well as the sub-directories.
They are all set for 777.


Mine are set for 755 and work ok. WorldWritable (777) is really not advised.
 
View user's profile Send private message
ravenworks
Hangin' Around



Joined: Sep 22, 2010
Posts: 33
Location: Arizona

PostPosted: Wed Dec 22, 2010 11:36 am Reply with quote

Thanks for the reply.
I just changed permissions to /userfiles/ and all sub-directories but no joy!
It all looks like it is working but... the file never actually gets uploaded!
Most perplexing...
 
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Wed Dec 22, 2010 11:55 am Reply with quote

Some things to check.

What kind of file are you trying to upload? Test small jpg image to make sure it is not an image type issue.

Have you checked your error logs? Turn on error reporting and see if any errors are being reported.

Make sure you do not have an index file in the upload directories. I would also make sure the directories are empty.

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
ravenworks







PostPosted: Wed Dec 22, 2010 1:02 pm Reply with quote

Once again... your advice has helped.

I've been attempting to upload a PDF file as that is important for the website.
I tried a different PDF file and it uploaded! (Never thought it might be a bad file.)

I will be instructing the admins for this site to use the upload feature within the "Browse Server" mode of the editor to make sure they put their PDF files in the /userfiles/file/ sub-directory

At this point I'm calling this problem solved.
Thanks for all the valuable assistance and "Merry Christmas" to all!

Noel
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Wed Dec 22, 2010 2:34 pm Reply with quote

Actually, I'm now wondering if it was actually the file name of the PDF that might be the problem. Did it have any spaces or characters other none alpha-numeric characters other than a dash or underscore?
 
View user's profile Send private message Send e-mail
ravenworks







PostPosted: Wed Dec 22, 2010 4:01 pm Reply with quote

Hmm... Good point.
Yes, it had spaces.
 
ravenworks







PostPosted: Wed Dec 22, 2010 6:03 pm Reply with quote

Okay... I do need some more information, please.
Is there a file size limit to uploading PDF files?
If so, can it be modified?

I have not found an answer (as yet) in the forum.

Thanks in advance...
 
Guardian2003







PostPosted: Thu Dec 23, 2010 4:46 am Reply with quote

Try uploading the file again after removing the spaces in the file name - alternatively change the spaces for underscores.
 
ravenworks







PostPosted: Thu Dec 23, 2010 11:11 am Reply with quote

Thanks for the reply.
Actually, replacing spaces with underscores solved the initial problem.

However, it appears I can only upload files 2MB or smaller and I seem to remember some reference to an upload file size limitation... but I'm not sure if this is correct.

Any ideas on the subject?

Thanks...
 
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Thu Dec 23, 2010 11:37 am Reply with quote

That is a PHP setting. Inquire with your host about possibly increasing it. You may be able to change it your self via a php.ini file, but if you do not know what I am talking about ask your host.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
PHrEEkie
Subject Matter Expert



Joined: Feb 23, 2004
Posts: 358

PostPosted: Thu Dec 23, 2010 2:55 pm Reply with quote

If your host doesn't want to mess with PHP max filesize settings, and you can't do it with an imported php.ini, you should really use FTP or your CPanel File Manager to deal with such large files.

Depending on your upload speed and/or connection, you can start getting PHP timeouts with such large files, which is why it's better to manage them separately with an appropriate app.

- Keith

_________________
PHP - Breaking your legacy scripts one build at a time. 
View user's profile Send private message
ravenworks







PostPosted: Thu Dec 23, 2010 5:36 pm Reply with quote

AHA!

That makes sense. I do remember the 2 MB limitation.
Thanks for the input. Now I can explain to my clients what is going on.
We will be using an FTP program to upload files larger than 2 MB.

F.Y.I.: The FCKeditor is working as it should and readers of this thread should know that I am using a fresh upload of the original FCKeditor that came with the RN distribution.

This forum has been a valuable resource to migrating from Mambo to RavenNuke.
The members of this forum are intelligent and considerate... not attributes I see in other forums as much as I would like.

Thank you all for your help.

Merry Chrsitmas,

Noel
 
PHrEEkie







PostPosted: Fri Dec 24, 2010 12:05 am Reply with quote

ravenworks wrote:
The members of this forum are intelligent and considerate... not attributes I see in other forums as much as I would like.


Some seeking help lack some attributes as well, but not you. You have been a class act all the way, through several threads I've seen. It makes support easier with someone who is patient, provides asked for details, follows instructions (whether they help, or not), and you just are generally a relaxed person intent on getting the RIGHT answer, not just the quickest answer.

The level of support in any forum is weighed against the avg. bar height of the people seeking that support. This forum, over the years, has always had a majority of people with your qualities, which keeps that avg. bar height way up there for us to match each day. I was gone from community involvement for a long time, and am quite impressed at the level that has been maintained. That has to land squarely back on the leader, Raven, who has found the best way to lead is by example, not by a baseball bat. Wink

ravenworks wrote:
Thank you all for your help.

Merry Chrsitmas,

Noel


Merry Christmas right back, my friend. The internet is a wonderful place when it works like this. I wish you and your family all the best, and your clients all are lucky to have such a focused individual looking out for them.

Cheers,

- Keith
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Mon Dec 27, 2010 11:48 am Reply with quote

ravenworks wrote:
That makes sense. I do remember the 2 MB limitation.
Thanks for the input. Now I can explain to my clients what is going on.
We will be using an FTP program to upload files larger than 2 MB.


No guarantees, but if your host lets you, you may be able to override that yourself within your .htaccess file. You could possibly try adding the following:

Code:


php_value post_max_size 20971520
php_value upload_max_filesize 20971520


You might want to start with a smaller value. While I cannot recall for certain (can easily look up I'm sure on php.net), the above might be 20MB.

If you get a Server 500 error, back off the number. If you still get it, then your host probably doesn't allow these configuration settings to be overridden.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©