CKFinder Upload Permissions Issue - permissions

Afternoon,
I have been working with CKEditor and CKFinder for the last few days and it all worked locally. Once I put it live in all aspects it worked except when attempting to upload a .pdf file to the server via the Link -> Upload tab.
The error that I receive is "The requested resource type is not valid". I have set the folders that it is uploading to, to 777 and I have made sure that the Resource type of Files also allows for the extensions of .pdf in config.php of CKFinder.
This error is stopping me from completion of my project and I really am out of things to try any ideas/ work arounds would be brilliant.
One possible solution was to use KCFinder which I was told would work but my boss said that was not an option unfortunately.

The problem seems to have been an out dated version of CKFinder and I fiddled with the config file and made sure that the $baseUrl and $baseDir followed the rules in the comments. Prior to that I think my $baseUrl did not have the '/' at the beginning of it and now does. The problem lies in the config.php file in CKFinder for anyone else that has the problem.

If the message is "the resource type is not valid" then it's not a permissions issue, but instead that you have renamed the resource types and so it doesn't initialize properly.
If you already have a license to CKFinder you should post this kind of questions at the forums or through the support channel.

Related

marklogic "getting started" app returns 404 on mac

I'm running MarkLogic 8 (developer edition) on Mac OS 10.10.1.
I'm a beginner with ML, and I'm reading the "Getting Started" material in the online docs, in particular the section "Sample XQuery Application that Runs Directly Against an App Server."
I created the "TestServer" app server just fine, following the instructions. I then copied and pasted the text for the four XQuery files in the exercise, load.xqy, dump.xqy etc.
My local copies of the four .xqy files are under ~/Library/MarkLogic/Apps/Test, per the instructions. Read and execute permissions are open along the entire filepath, down to the .xqy files themselves.
When I request http://localhost:8005/Test/load.xqy, as instructed, I get a 404 Not Found response.
lsof -i :8005 indicates that MarkLogic is indeed listening on port 8005.
I checked the TestServer configuration against the instructions, disabled and re-enabled TestServer, stopped and re-started ML--always with the same result: 404 Not Found.
I haven't been able to find anything in either the ML mail archives or Stackoverflow to get me past this sticking point.
Any ideas or suggestions would be very much appreciated. Thank you!
This seems like a permission issue. Does it work when you run it as the admin user?
Have check to make sure the files are loaded into the modules database?
Also check the permission got set with the correct role for those file.
Check to see that user that is running the app has the role that you used when setting permission on those file.
This worked for us:
In the TestServer configuration instead of just putting Test in root field, put Apps/Test/ which is the location of the 4 files (load.xqy,dump.xqy, update-form.xqy and update-write.xqy relative to the MarkLogic installation directory -- in our case, centos, this was at /opt/MarkLogic/)
And then issued this command
chmod +r *.xqy
If you follow all the instructions correctly just remove the Test from the url. If yours is "http://localhost:8005/Test/load.xqy" make it "http://localhost:8005/load.xqy"

aws s3 intergration with mediawiki

I working with mediawiki.
I want to change upload directory path to aws s3, i tried these two extensions but i getting some warning message.
I dont know these extension are working correctly.
https://www.mediawiki.org/wiki/Extension:LocalS3Repo and
https://www.mediawiki.org/wiki/Extension:AWS
If anybody is working with these extension or if you achieved these in any other ways
please explain me
I have been succesfully using the method described here, though in step 6, rather than using an apache rewrite, I changed the image paths in LocalSettings.php.
(It was quite a lot of work though, and I never figured out a way to the the cache-control and expires headers on the files, which was the real reason why I wanted to do it to begin with.)

LimeSurvey - Saving Changes To A Template

I am trying to make changes to a template but when I try to save changes, I receive the following error:
Forbidden
You don't have permission to access /survey2/index.php/admin/templates/sa/templatesavechanges on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to > handle the request.
When I look in the templates folder, I do not see the templates I have created even though they are visible from within the LimeSurvey administration panel. Does anyone know how I can fix this error?
Please make sure you have given write permissions to the upload and tmp directory inside your limesurvey installation.
I think this should solve your problem.
amit

S3Fox for Amazon S3 is not creating an account

So I installed firefox add-on S3Fox to upload and manage files on Amazon S3. I clicked on the "Managed Accounts" button and entered my credentials there.
But it is continuously showing me the message:
The request signature we calculated does not match the signature you provided.
Can anyone suggest the solution? Am I doing anything wrong?
Thanks so much.
Got the answer. The Amazon account was not activated. Once I used the activated account, it accepted it successfully.
Just ran into this message myself. Couldn't create a folder. But my account has been active for many years now.
I had created a folder inside of a bucket which had a space in its name, e.g. "xx xx" I had also previous created a folder inside of that, "cf-5b" a while back. Today I wanted to create another folder in "xx xx" but it refused with the same error message.
I was thrown by the fact that there was already an older folder in there.
So I went up a couple levels. Created a folder that had a space in it "yy yy" and that worked, but if I went into that folder and tried to create any folders, it would not let me and I got the error that you got.
Something changed in the API's at some point? Or an S3Fox issue (0.6).

Updating Files on Apache

I'm having trouble with my Apache Web Server. I have a folder (htdocs\images) where I have a number of images already in place. I can browse them and see them on my web server (and access them via HTML). I added a new image in there today, and went to browse to it, and it can't be found. I double and triple checked the path and everything. I even restarted Apache and that didn't seem to help.
I'm really confused as to what's going on here. Anybody have any suggestions?
Thank you.
Edit I just turned on the ability for the images directory to be listed, browsed to it (http://127.0.0.1/images/) and I was able to see all the previous images that were in the folder, but not the new one.
Turn directory indexes on for htdocs\images, remove (or move out of the way) any index.* files, and point your browser at http://yoursite/images/
That should give you a full listing of files in that directory. If the file you're looking for isn't there, then Apache is looking at a different directory than you think it is. You'll have to search your httpd.conf for clues -- DocumentRoot, Alias, AliasMatch, Redirect, RedirectMatch, RewriteRule -- there are probably dozens of apache directives that could be causing the web server to get its documents from somewhere other than where you think it's looking.
make sure the caSE and spelling are 100% correct.
There is not magic in programming (some may disagree:), so look for silly errors. Wrong server? Case of your letters? Wrong extension?
There's a chance it could be due to the cookies stored on your device. I would delete all cookies to the website you're working on before you refresh again