BUEditor Buttons Not Showing When Deployed Production

jdcllns - April 8, 2008 - 20:54
Project:BUEditor
Version:5.x-1.1
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

BUEditor works great on my dev server here on my pc. When I install it on the clients server at bluehost.com, the buttons do not display above the text areas. I can find no differences between the installations. I'm at a loss as to what to check next. Any ideas on where I should start?

#1

jdcllns - April 8, 2008 - 21:19

Dev server:
MySQL 4.1.22
PHP 4.4.6
Web server Apache/1.3.37 (Win32) PHP/4.4.6

Production
MySQL 5.0.45
PHP 5.2.5
Web server Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635

The only differences I've found so far.

#2

ufku - April 9, 2008 - 06:40

If your download method is public check if a js file is included under FILES-PATH/bueditor/
Check if that file can be accessed directly by typing the address in the address bar. http://host/FILES-PATH/bueditor/...js

The files under FILES-PATH/bueditor are scripts that contain the buttons of the editor. If these files are not web-accessible your buttons will not load, even if the scripts seems to be loaded in the page source.
If you manually(by ftp) created the FILES directory and its subdirectories, you are probably having an chmod issue. You should make sure FILES-PATH/bueditor is readable by everyone, and of course writable by php.

#3

jdcllns - April 9, 2008 - 14:51

The setting for site/drupal/sites/all/modules/bueditor/

Read Owner Group All
Write Owner
Ex Owner Group All

Both scripts:

site_url/drupal/sites/all/modules/bueditor/bueditor.js
site_url/drupal/sites/all/modules/bueditor/library/default_buttons_functions.js

display in the browser when typed into the location bar.

#4

jdcllns - April 9, 2008 - 15:16

Also, the Content fields of the default editor on the production server are different from those of the dev server. See attached screen captures.

AttachmentSize
default_buttons_dev.jpg 110.69 KB
default_buttons_prod.jpg 85.26 KB

#5

ufku - April 9, 2008 - 15:40

You should have checked the files/bueditor directory, not modules/bueditor directory :(
In files/bueditor there should be at least one js file named something like 3fd013918043e51179132f8db5f5b34f.js
Check them.

The latter issue was a PHP5 issue where php buttons were being saved executed. This was fixed in 5.x-1.1. Are you sure you are using the latest version?

#6

jdcllns - April 9, 2008 - 17:25

Sorry, I totally misread what you typed. There are, in fact, two java scripts in the files/bueditor dir. Both give me "403 Permission Denied" when I browse to them. Both their permissions are:

Read Owner Group All
Write Owner Group
Ex (none)

Drupal's status report tells me that it's running under PHP5.2.5.

#7

jdcllns - April 9, 2008 - 17:36

I finally got it to work by setting the Executable attribute on the "files" folder to ALL. Now everything appears to be working fine. I knew it had to be something that simple, but I just couldn't find it because everything else is working perfectly. Thanx for your time an patience.

#8

ufku - April 10, 2008 - 07:32
Status:active» fixed

nice.

#9

Anonymous (not verified) - April 24, 2008 - 08:35
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#10

yan - July 1, 2008 - 13:15
Status:closed» active

Same problem here: The buttons don't show for the user role they are assigned to. After reading this issue I checked the /files folder and noticed that there wasn't a "bueditor" folder inside, i.e. no .js files. I created the folder manually setting read, write and execute permissions - nothing changed. On my local server I didn't experience this problem. Any more ideas? I'm using Drupal 5.7 with BUEditor 5.x-1.1.

#11

ufku - July 5, 2008 - 00:29

make folder permissions 777 for both files and bueditor.

#12

As If - June 29, 2009 - 01:18

Thanks yan & ufku. I also had no bueditor folder in files. #10 and #11 did the trick. This was a fresh install of bueditor 6.x-1.2 under Drupal 6.12.

What are the circumstances that cause this folder to not be created in the first place? My files folder was already 777.

#13

ufku - June 29, 2009 - 20:52
Status:active» fixed

If you use 6.x then you shouldn't have any problems with bueditor folder because 6.x does not use it.
You may have "js" or "css" folder problems as drupal uses them for storing aggregated files. Try disabling js and css aggregation under performance settings.

#14

As If - June 29, 2009 - 21:26

Ok, then this is getting weirder. First, the above steps worked for me on D6. But today, the editor buttons have stopped appearing again. And I don't use CSS or JS aggregation. Diagnosis, doctor?

#15

ufku - June 30, 2009 - 10:54

Provide more symptoms, please.
Look at the source to see if bueditor scripts are loaded. Any js errors?
If you find out that it's a bug open a new issue with a relevant title and project version.

#16

As If - June 30, 2009 - 11:20

bueditor/bueditor.js and bueditor/library/default_buttons_functions.js are both loaded. No js errors evident. The buttons appeared after I created the (unnecessary?) folder mentioned above, then stopped appearing the next day. There may be some theme issues involved since I have been working on the templates. Will open a new issue for the D6 version if I find out anything useful...

#17

System Message - July 14, 2009 - 11:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.