Go Back    Forum > Digital Publishing / Web Sites > Website and Server Troubleshooting

Reply
 
LinkBack Thread Tools
  #1  
09-25-2012, 03:34 AM
kpmedia's Avatar
kpmedia kpmedia is offline
Site Staff | Web Hosting, Photo
 
Join Date: Feb 2004
Posts: 4,311
Thanked 374 Times in 341 Posts
A longer explanation of Visual Editor errors is here: http://www.digitalfaq.com/forum/web-...al-editor.html
I wrote that last night, using this same jQuery Colorbox (JCB) problem as an example.

In plugins\jquery-colorbox\includes\jquery-colorbox-backend.php, the following code adds jQuery Colorbox to the editor:
Code:
    //add style selector dropdown to TinyMCE
    add_filter('mce_buttons_2', array(& $this, 'addStyleSelectorBox'), 100);
    //add Colorbox CSS class to TinyMCE dropdown box
    add_filter('mce_css', array(& $this, 'addColorboxLinkClass'), 100);
What often happens is that some other plugin or theme code (in functions.php) is trying to add one of the same piece of code to the editor as JCB is doing. You can then either choose to remove the code from the JCB plugin, or remove it from the other plugin/theme -- if you can find it. Sometimes it's just easier to comment out the code in JCB and see what happens.

Neither of these are overly important anyway, as best as I can tell.

On sites where I'm using this plugin, I have it set to automatically use Colorbox on any image in the post/page, where an image has been linked -- all of which is done in the styling/linking options of the media editor. So I've been entirely sure what benefit comes from having JCB code crammed into the Wordpress visual editor.

Hope that helps somebody.

_______________


Need a good web host? — Read our 2018 Review of the Best Web Hosts
Quite often, problems with web sites are caused by having a rotten web host. Worse yet, many hosts try to blame you (the customer) for the problems! So dump that lousy company. Say goodbye to slow sites, unresponsive support techs, and downtime. Find yourself a new host today. Whether you need shared, reseller, VPS, semi-dedicated, cloud, or dedicated hosting, something on our list should be a good upgrade for you.


- Did my advice help you? Then become a Premium Member and support this site.
- Please Like Us on Facebook | Follow Us on Twitter

- Need a good web host? Ask me for help! Get the shared, VPS, semi-dedicated, cloud, or reseller you need.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
09-27-2012, 04:36 AM
kpmedia's Avatar
kpmedia kpmedia is offline
Site Staff | Web Hosting, Photo
 
Join Date: Feb 2004
Posts: 4,311
Thanked 374 Times in 341 Posts
I just found another error thrown by jQuery Colorbox, when WordPress has debugging enabled:

Code:
Notice: Trying to get property of non-object in X:\...\wp-content\plugins\jquery-colorbox\includes\jquery-colorbox-frontend.php on line 106
On line 106 of includes\jquery-colorbox-front.php is an odd request syntax:
Code:
$replacement = '<img$1class=$2$3 colorbox-' . $post->ID . '$4$5>';
Replace with:
Code:
// $replacement = '<img$1class=$2$3 colorbox-' . $post->ID . '$4$5>';
   $replacement = '<img$1class=$2$3 colorbox-' . ($post && $post->ID) . '$4$5>';
... and the error goes away.

- Did my advice help you? Then become a Premium Member and support this site.
- Please Like Us on Facebook | Follow Us on Twitter

- Need a good web host? Ask me for help! Get the shared, VPS, semi-dedicated, cloud, or reseller you need.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
WordPress table plugin - How to change background color CSS? via Email or PM Web Development, Design 1 09-22-2012 04:13 PM
Problem editing pages in WordPress, visual editor is not opening! faustine Website and Server Troubleshooting 9 06-05-2012 11:02 PM
Error when activating vBulletin/WordPress Bridge plugin via Email or PM Website and Server Troubleshooting 1 12-16-2011 05:32 AM
GetResponse code in WordPress? plugin? admin Website and Server Troubleshooting 0 04-07-2010 10:05 PM
Looking for WordPress music sidebar plugin for band site admin Website and Server Troubleshooting 0 10-07-2009 08:14 AM

Thread Tools



 
All times are GMT -5. The time now is 06:13 AM