IvoryCKEditor and FMElfinder - buttons grayed out - php

I've installed and configured both bundles according to the docs, but when I open the file browser, I can't actually do anything. All but the help buttons are grayed out. A link to a screenshot: screenie
My upload folder appears to have the correct permissions (664), and no errors are popping up. Am I using it wrong? I intend to have my end users to be able to upload images and other files from their systems to the server through the CKEditor.

Turns out it was a permissions issue. D'oh. Setting permissions to 777 cleared it right up.

Related

Wordpress - it is impossible to edit the theme file through admin after FTP upload

I would like to change the theme file through the Wordpress Admin Panel, in menu Appearance > Theme Editor, but I've got the message:
Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.
Everything was working correctly before I've made some changes in the file and upload it through the FTP back to the server. I am able to change every other file in Theme Editor, but this one. The rights are the same as in other files I am able to change, the owner and group are the same too. It looks that everything should work, but this and only this one file I have updated via FTP I am not able to change through the Theme Editor of Wordpress Admin Panel.
Any idea what could be possibly wrong? What I have done wrong? Please help me somebody, in the most of the time I am on the "safe" network, and the server FTP is not accessible from my computer.
Thank you.
Check Theme Permission
One of the first things you got to check the theme files and folder permissions.
If you are running on shared hosting then mostly it would be alright. However, if using VPS or Cloud then you got to ensure the same user owns theme files as web server (Nginx or Apache HTTP) running.
Modify File Permissions with chmod
FYR :- https://www.linode.com/docs/tools-reference/tools/modify-file-permissions-with-chmod/
Check Security Plugins
Are you using any security plugins? Do you have the option to check their logs to see how exactly your request is being treated?
Alternatively, you can quickly disable the security plugin and verify if that works.
I have finally solved the problem. There were two things with I have mislead my question.
The first one was that I wrote "Everything was working correctly before I've made some changes in the file and upload it through the FTP" and after that I wrote it again in the comment of the answer - I was so sure that I have tried the same file before, but I have not, it definitely was another one, I am sorry.
And the second was that I did not write specific file name. The file was includes/_wp_utils.php. Somebody would maybe notice that this is the biggest file in that directory. And that was the problem. I do not know why - maybe it was too big for server processing or something else (120KB), but I noticed it later, and I have tried to split the file to a few smaller files and I have included them into the includes/_wp_utils.php with the command include_once __DIR__ . '/_wp_utils/_nth_part_of_original_wp_utils.php';.
Thank you #G.D Udara Lahiru Sampath, I absolutely liked your answer. It was useful and very important to check.

Theme Editor Stylesheet File Editor Error in WordPress

I am trying to change CSS of my wordpress website. I am changing code under wp-admin/theme-editor.php. But whenever i click on upload file button, an error appears Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.
I thought this happened because of plugin, so i deactivate all the plugins and tried again. But problem was still there. Does any one know how to solve this problem?
I also installed Health Check & Troubleshooting to find the error. Here is snapshot of health check https://i.imgur.com/WCaeus3.png
First of all I suggest you to use FTP and proper .php file editor for editing your WordPress site.
Secondly - you should never make changes directly to WordPress core files as they may overwrite during update.
Lastly - the error is probably due to file permission error. Go to FTP and set your WordPress folder permissions to 755, all file permissions to 644 and set .htaccess and wp-config.php file permissions to 444. This will fix your issue.
P.S. Here is short tutorial I found on Google. This will help you to fix this issue: https://www.wpbeginner.com/beginners-guide/how-to-fix-file-and-folder-permissions-error-in-wordpress/

Cannot see my .html files under www. in Ubuntu

I have a website that it's working, so if I go to its address on the web, it shows up. When I connect with the FileZilla Client and go to var/www/mywebsite/html/ I cannot see the html files.
I need to change some html files, add others and so on.
Does anyone has a clue why I cannot see the files and how can I solve the issue?
did you verify if your ftp user had rights to your www directory? if not, you will need to go in via ssh to change file permissions.
Are you sure that you are not looking at the files with the tree view option? You need to look at you're files with the detail view option. If you still can't see them I'm assuming you are in the wrong directory.

How to get images to display on website while using XAMPP on Macbook Pro

I built an HTML/CSS website and then added PHP functionality. Installed XAMPP. Since installing XAMPP, everything on the site works except the images. Image files don't display. They are all properly referencing the directory. In fact, before using XAMPP, the images displayed fine on the HTML webpages. After using XAMPP and re-saving as .php, they stopped working. Nothing else changed. I figure it must be a settings issue. Thoughts, anybody?
Thanks a billion in advance!
#john steve I had also the same issue. I tried lots of thing suggested on different forums but it did not work. Finally I set up permission for each images and it worked.
I just had the same problem. And the reason was that my images folder had no-access permission. I changed the permission to Read/Write for admin and Read-only for everyone else. It is possible to change permission for each individual time but it is time consuming, therefore changing the permission of parent folder is effective.
The following steps are for MAC OS:
Open applications folder
Locate XAMPP folder
Right click > get info.
In pop-up window locate the 'sharing & permission' section
Click the 'locked' padlock symbol
Enter admin password
Change 'Everyone' permissions to read & write
In the get info window still, select the 'cog' icon' drop down option
at the very bottom and select 'Apply to enclosed items' this will
adjust the permission across all sub-folders as well.
Re-lock the padlock symbol
Close the 'Get Info' window.
And for Windows:
-
Locate XAMPP folder
Right-click the folder, click Properties, and then click the Security tab.
Click Edit to open the Permissions for <Object> dialog box.
Click the name of the group or user.
In the Permissions for <User or Group> box, select the Allow check box.
References: Microsoft and Stackoverflow
#Manuel is right. If the problem persists, try absolute paths in image src. The absolute paths will be like http://localhost:8888/your-website-folder/your-images-folder/your-image-name
In windows you don't use port number (which is 8888) in this case
Good luck.
Its probably an issue with accessing local files on a "domain" that is not local. Just update you're images path to something relative or within localhost and it will be fine. Its a browser security thingy to not load local files when you are not opening a file directly from a file path. (Cross-domain or Same-origin policy). The idea is to not let any website sniff your local files and it doesn't work differently for localhost which can be an alias to any IP (doesn't nnecessarily to be 'local').
To fix this issue, move all your assets into the folder that is the root for localhost and e.g. use "images/someImage.jpg" instead of "c:\somePath\someImage.jpg". You cannot mix up c:\ with a page served from http://localhost/.
You will see this issue popping up in the network panel of chrome developer tools or Firebug extension when working with Firefox. It's really NOT recommended to, but it's possible to turn off this crucial security settings: http://joshuamcginnis.com/2011/02/28/how-to-disable-same-origin-policy-in-chrome/ - I would warn anybody to do it that way, though.
I figured out the problem: all of my images had permissions marked: "everyone: no access." I changed it to: "everyone: read only" I did this simply by right clicking (aka control-clicking) each image and then clicking "get info." I then scrolled down to "Sharing & Permissions." It's self explanatory from there. Thanks for the help everyone!
You have to set read and write permissions to each image you want to use. I assume you can probably do the entire folder in and it will cascade down. On mac right click (two finger) => get info => at bottom set all to read/write. reload page. Presto.
Please check the folder name. Don't use uppercase letter in folder names. I tried all solutions advices but finally found that solution. My pictures folder was "Resimler" then I couldn't see the pictures but I changed as "resimler" then it is worked.

Image cannot be loaded

I was installing an open source library management (based on PHP and MySQL) in one of my subdomain (here's the link http://perpustakaanbeta.atdikbudlondon.org/).
I am having problem with the icon and background image,as you can see from the website. Take the background image as the example. It is not suppose to be just plain black. By default, the developer has leaved us some images within the source. And I am sure the path to the intended source,i.e. the image,is correct. I have tried to put a direct URL of any random image (http://www.imageshack.com/blabla/bla.jpg) as the input for ,it worked. But,if I changed it back,it didn't work.
If anyone know what might have gone wrong,please let me know.
Thanks.
Unexpected "403 Forbidden" errors on software that you've just uploaded to your website are often caused by incorrect file permissions.
Log into your shell account or file manager and make sure the ownership and permissions of these files are set correctly. Set the permission of files to 0644 and folders to 0755.

Categories