Ready to get started?Download WordPress


Lightbox Plus Colorbox
[resolved] Use plugins_ur() instead of WP_PLUGIN_URL (for SSL) (3 posts)

  1. I had an issue with a client site using Lighbox Plus running on Apache under SSL. The asset links (colorbox.css and jquery.colorbox-min.js) still had http in the url instead of https, causing some browser issues.

    Changing line 41 in lightboxplus.php (V2.4.6) to the following fixed my problem.

    $g_lightbox_plus_url = plugins_url('', __FILE__);

    WP_PLUGIN_URL will not pick up on SSL and create asset links still using http, not https.


  2. rclations
    Posted 1 year ago #

    Actually, that code generated the following issue for me:

    [18-Dec-2012 21:07:27 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at http://www.mywebsite.com/web/content/wp-content/plugins/lightbox-plus/lightboxplus.php:2) in http://www.mywebsite.com/web/content/wp-includes/pluggable.php on line 876

  3. Dan Zappone
    Plugin Author

    Posted 1 year ago #

    Updated in the latest version. Actually it was updated long before but I've been stalling on releasing it. My apologies.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic