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.3 RN Issues
Author Message
tremor
Hangin' Around



Joined: Dec 31, 2008
Posts: 26
Location: NY

PostPosted: Thu Jan 22, 2009 5:01 pm Reply with quote

I have several issues, coppermine wont upload, submit downloads wont upload, fckeditor won't upload or create folders...

that being said, my RN 2.3.0 install is working great otherwise... couldnt be happier... so here are some details....


The coppermine issue "Script called without the required parameter(s). "

And the Submit Downloads issue "ERROR: File Not Uploaded. "

now everyone is going to say check for "safe mode" and chmod... - check. On this very same linux server I have a copy of php fusion installed and uploads and photo galleries work fine. Although, yes I do agree this is possibly a permissions issue somehow.. but two completely unrelated mods unable to send a file to the server.

SO I think, maybe this is Nuke Sentinel? I disable nuke sentinel and still not working.

and just now i decided to try uploading an image via fckeditor.... it says uploaded successful, but no pic.. and aha.. i try to make new folder in fckeditor in the uploads directory... and it says i dont have permissions.. the permissions all appear correct in the shell... so what is this?

I've read about open_basedir some but i'm not sure what it is exactly.. and I am positive safe mode is off. I own the linux server this is hosted on.. it's fairly new install all around.. latest apache, php and mysql...

any tips, suggestions.. ?
 
View user's profile Send private message Visit poster's website
dad7732
RavenNuke(tm) Development Team



Joined: Mar 18, 2007
Posts: 1242

PostPosted: Thu Jan 22, 2009 5:13 pm Reply with quote

Sounds very much like the directory permissions are set at 644 and you need to SSH in as "root" to see it and you can't upload anything with 644 either. You say the permissions are set correct, so what are the permissions? Also, in the shell do ls -l to see who owns what, etc. What FTP app are you using and are you in binary, ascii or auto mode. I use FileZilla and it works quite well.

Could be something entirely different but that's where I would start here.

Cheers
 
View user's profile Send private message
tremor







PostPosted: Thu Jan 22, 2009 5:19 pm Reply with quote

i've been in the shell, the permissions are correctly set 777 where they need to be.. i've chown -R user:user * in my public_html folder..

I might also add --- my php fusion installation does uploads and file mangement just fine. (i would prefer to use RN for my site though).

this HAS to be a RN issue with how my server is setup and not just a problem with how my server is setup.
 
dad7732







PostPosted: Thu Jan 22, 2009 5:29 pm Reply with quote

Wondering if this could be whether or not you upload the *.gz file and untar it on the server or unpacking the distro locally and uploading file by file.

Corrupt distro by chance?

Cheers
 
tremor







PostPosted: Thu Jan 22, 2009 5:39 pm Reply with quote

RN 2.3.0 works perfectly in all other regards... the solution is either far more complex or far more simple... like i said i have a feeling this is leaning towards the open_basedir or .htaccess ---- just another not.. fckeditor does not see the images i uploaded manually into the images folder... so i'm going to double check that I've got the right home directory setup.. which i'm certain i do because even more would be broken if that were the case.
 
dad7732







PostPosted: Thu Jan 22, 2009 5:48 pm Reply with quote

Getting a bit past my expertise with RN here. Try renaming .htaccess to .htaccessBAK but I see no reason for that to be the problem. Could be a GD issue as that was a problem explored here in another thread.

Can you see the images in question if you access them directly, such as:

http://www.yourserver/images/image.gif or whatever extension.

Cheers
 
tremor







PostPosted: Thu Jan 22, 2009 9:43 pm Reply with quote

ya i can see the images, like i said its a perfectly functioning RN install outside of the fact that it appears that any upload and physical file structure administration through a module fails. Funny thing with like the fckeditor image uploads is that it says, file uploaded successfully... and goes on like all is normal.. but no image is uploaded. I am past my expertise at this moment as well, and i'm a network admin lol (just with windows) my linux knowledge is coming about.
 
dad7732







PostPosted: Thu Jan 22, 2009 9:54 pm Reply with quote

If you can see the images by direct access then they are in fact "uploaded" and since the transfer has actually taken place then fckeditor is going to report it correctly.

I am going to defer to others with more direct expertise here as it still sounds like a "gd" issue, etc.

Is there a URL available where we can actually have a look? What image(s) are at issue? You may have to PM one of the others here if the access is private.

Have you tried another browser to view your site?

Cheers
 
nuken
RavenNuke(tm) Development Team



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

PostPosted: Thu Jan 22, 2009 9:56 pm Reply with quote

I had a similar issue in the past, but mine was just that the uploads folder did not upload to the server. I created the uploads folder and the sub-folders and set the permissions and it worked fine. I'm sure you have checked that, but thought I'd throw my 2 cents in.
 
View user's profile Send private message Send e-mail Visit poster's website
tremor







PostPosted: Thu Jan 22, 2009 10:06 pm Reply with quote

i'm sorry dad i mis-spoke - no images that i am uploading are visible.. i thought you meant images in general. and its not just an image problem.. fckeditor cannot browse directories when you use browse option, nor canit make a new directory... as well the downloads/submit downloads module cannot upload any files.

my site for the rn install arpwn.com

i'm going to turn on php debugging... see what shows up... if i get some more explanatory errors i'll post 'em... nuken, where exactly did you put the uploads directory.. that's my one thought is that RN is looking for that directory somewhere other than where it is physically located.. mine is in the root /home/user/uploads/
 
nuken







PostPosted: Thu Jan 22, 2009 10:33 pm Reply with quote

The uploads directory goes in the root directory, you should have 4 folders inside it: file, flash, image, media. All should be chmod 777.
 
tremor







PostPosted: Thu Jan 22, 2009 10:48 pm Reply with quote

ya.. got that... another day, i'm going to go to bed.. maybe it'll just start working if i kick it really hard.
 
tremor







PostPosted: Thu Jan 22, 2009 11:33 pm Reply with quote

I turned on error logging on - here is what i've got



For Submitting A Download:
Warning: move_uploaded_file(/files/MouseFix.zip) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/arpwn/public_html/modules/Submit_Downloads/index.php on line 201

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpmHK3B0' to '/files/MouseFix.zip' in /home/arpwn/public_html/modules/Submit_Downloads/index.php on line 201


For Coppermine Upload:
Script called without the required parameter(s).
File: /home/arpwn/public_html/modules/coppermine/db_input.php - Line: 48


For FCKEditor:
I get this when I open the insert image button "Error creating folder "" (Can't create directory)"
And when I try to upload now it infinitely stalls, but atleast it doesnt say succes and still show no image.

---

All I gather from turning on the error reporting is... that it's still a permissions problem and it is sitewide... with my RN install (remember i have a php fusion install that does upload files and photos on the same server). any suggestions?
 
Guardian2003
Site Admin



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

PostPosted: Fri Jan 23, 2009 2:23 am Reply with quote

RavenNuke (tm) does not have a module called Submit_Downloads so I cannot even look at the file you mention to see whats happening.
Likewise with Coppermine.

For the FCKEditor the upload directory default path is set in the webroot/rnconfig.php I believe so it might be worth echoing that variable in whatever module you are using (News for example) to see where it is pointing in real-life.
 
View user's profile Send private message Send e-mail
tremor







PostPosted: Fri Jan 23, 2009 7:40 am Reply with quote

checked my rnconfig.php - the setting for fckeditor was "" which I would assume would take fckeditors default /uploads/ so i set it to /uploads/ now all i get is the following when i try to browse server and/or upload an image

Error creating folder "" (Can't create directory)


the submit downloads module is NSN GR Downloads module.

$uploadpath = '/uploads/'; it echos the same.. is this a relative path or should it be $uploadpath = '/home/user/public_html/uploads/';

could this be an .htaccess issue? Or sentinel, my sentinel is using CGI-Auth and I have done some research that the http auth is preferred...


Last edited by tremor on Fri Jan 23, 2009 8:18 am; edited 1 time in total 
dad7732







PostPosted: Fri Jan 23, 2009 8:08 am Reply with quote

I don't see anything in rnconfig.php that says fckeditor other than descriptions that are commented out.

The only line that I know of pertaining to FckEditor is:
Code:
$advanced_editor = 1;  // 0=Editor is turned OFF, 1=Editor is turned ON


1 = ON and 0 = OFF

Cheers
 
tremor







PostPosted: Fri Jan 23, 2009 8:22 am Reply with quote

dad look a few lines farther down from that one

$advanced_editor = 1; // 0=Editor is turned OFF, 1=Editor is turned ON

// To override the default uploads/ folder used for storing files uploaded
// through nukeWYSIWYG via FCKeditor's filemanager.
// This should have a slash at the beginning and a slash at the end (e.g. '/files/') and is relative to the URL without subdirectories
$uploadpath = '/uploads/';
 
dad7732







PostPosted: Fri Jan 23, 2009 8:25 am Reply with quote

Yikes, I was looking at only live lines, not commented out ones .. bah
 
dad7732







PostPosted: Fri Jan 23, 2009 8:44 am Reply with quote

Ok, I have a live test domain running and I got it working.

1) create root/uploads/image/
2) chmod /uploads/ 777 and /image/ 777

In FCKEditor, upload your image, then check /images/ .. the image is there, is here.

BTW: $uploadpath = '/uploads/'; is correct

Cheers
 
tremor







PostPosted: Fri Jan 23, 2009 9:01 am Reply with quote

still not working --- but i'm about to ask a really stupid question. When you say

1) create root/uploads/image/

do you mean in the root of my server /uploads/image/
or in the root of my user /home/user/
or in the root of the installation /home/user/public_html/

i've set my whole darn server to 777 and still not getting fckeditor image uploads to work.. when i go to brwose server just FYI no path comes up, no index.html just blank. I've found other posts here about it and it was never resolved.

----

oh.. is rnconfig.php supposed to be in both / and /includes?
 
Palbin
Site Admin



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

PostPosted: Fri Jan 23, 2009 9:05 am Reply with quote

Did you chmod the required directories per the installation Guide? If you did sorry, but it doesn't sound like it.

_________________
"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
tremor







PostPosted: Fri Jan 23, 2009 9:10 am Reply with quote

ugh.. i've chmod the directories.. i went and did a chmod -R 777 * and made every single file and dir in my whole server rwx.

i messed with the fckeditor configs some and have managed to get a new error when i try to 'browse server'

The server didn't send back a proper XML response. Please contact your system administrator.

---
XML request error: OK (200)

Requested URL:
http://arpwn.com/includes/fckeditor/editor/filemanager/connectors/php/connector.php?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F&uuid=1232723643670

Response text:
---
 
dad7732







PostPosted: Fri Jan 23, 2009 9:21 am Reply with quote

root = where your RN is located, the same directory where config.php is.

I can't get mine to work either once the image is uploaded and when I go to insert image and then browse the server I get "you don't have permission to access ..... /path/path/browser.html and the entire directory path from /includes/fckeditor/ is 777 ... dunno, beats me. It may be an "owner" issue that is strange because everything else works on my server with over 20 domains and the same owner for directory and group.

We'll figure it out eventually.

My Son teaches college courses in UNIX/LINUX .. I'll get him involved. He is also quite proficient in PHP. Smile

Cheers
 
tremor







PostPosted: Fri Jan 23, 2009 9:46 am Reply with quote

cool, ya i figured root was meaning the base dir of RN... just had to be certain, at this juncture i'm considering all the various possibilities.

i've done a chown and chrgrp for my user 'arpwn' on all the files and directories... i thought this might be the issue to as i had set a separate group at one point for other people who i let do theme work for me.. i gave them an ftp account but didnt want theme leaving the theme directories. I'd hash this whole thing up to bad server settings if my other CMS's were unable to upload... but they are (they may handle uploads differently though?)
 
Guardian2003







PostPosted: Fri Jan 23, 2009 10:44 am Reply with quote

The only issues I am aware of related to using the BSD OS but I think that was resolved by specifying the path in rnconfig.php as you have already done.
I am assuming that this install is clean i.e. not an upgraded site as the older version used a mix of cases for some files and directories e.g. FCKeditor whereas the current version that shipped with RN2.3 uses lower case only.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 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 ©