Thread: Zen Colorbox

Results 1 to 10 of 350

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Zen Colorbox

    Quote Originally Posted by jpda View Post
    @mc12345678 Did you notice the error in the log file referring to zen_lightbox()?

    Cheers,

    jpda
    Along with the disconnect of what was contained in the requested file at the same line? Might say so, though I forgot about that. I kind of figured the issue got resolved once the correct line was returned and after the first suggestion of verifying the file(s).

    That discrepancy is partly why the suggestion has been to validate the file installation. Though, I haven't asked if the error message has persisted or if it went away once the "correct" file was put into place or the changes successfully merged. Afterall the line provided from the troubled file is/was correct (still a bit of assumptions being made like that the line was provided from the live site and not from a backup or the download itself.)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2
    Join Date
    Jun 2014
    Posts
    157
    Plugin Contributions
    0

    Default Re: Zen Colorbox

    Quote Originally Posted by mc12345678 View Post
    Along with the disconnect of what was contained in the requested file at the same line? Might say so, though I forgot about that. I kind of figured the issue got resolved once the correct line was returned and after the first suggestion of verifying the file(s).

    That discrepancy is partly why the suggestion has been to validate the file installation. Though, I haven't asked if the error message has persisted or if it went away once the "correct" file was put into place or the changes successfully merged. Afterall the line provided from the troubled file is/was correct (still a bit of assumptions being made like that the line was provided from the live site and not from a backup or the download itself.)
    Thanks, I was just wondering because the contents of line 24 were from zen-colorbox.

    Cheers,

    jpda

  3. #3
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Zen Colorbox

    ZC version 1.5.4
    Code:
    [16-Oct-2017 20:57:36 America/Los_Angeles] PHP Warning:  constant(): Couldn't find constant ZEN_COLORBOX_PLUGIN_CHECK in /home/heavenandearthde/public_html/wDgyYtZUuSM/includes/init_includes/init_zcb_config.php on line 101
    Why? best way to troubleshoot this?
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  4. #4
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Zen Colorbox

    Quote Originally Posted by barco57 View Post
    ZC version 1.5.4
    Code:
    [16-Oct-2017 20:57:36 America/Los_Angeles] PHP Warning:  constant(): Couldn't find constant ZEN_COLORBOX_PLUGIN_CHECK in /home/heavenandearthde/public_html/wDgyYtZUuSM/includes/init_includes/init_zcb_config.php on line 101
    Why? best way to troubleshoot this?
    So, to offer more of an answer to the why, I'd probably need more information. My thought though based on a rereview of the current installation package is to execute the uninstall sql found in admin/includes/installers/zen_colorbox and then allow the install to progress naturally. It could be also that the uninstall need be executed a couple of times to truly get all of the snippets depending on historical attempts to have previously attempted to install the plugin.

    Now, if through all that, the mydebug log file still gets generated and only one time not with each and every admin page click, then it's likely a strict php related thing where the code is to some extent parsed before executed and the expectation of the value being defined during execution is not recognized.

    Obviously to prevent even the first occurrence of that message, line 101 could be modified to include a check for the variable to be defined before testing against the value in the addition of an && at the beginning... such as:
    Code:
    if (defined($module_constant . '_PLUGIN_CHECK') && ...
    But by simply adding that test to address a one-time message could also affect future recognition that the plugin has an available update. So perhaps the conditions above could be further explained. One log file or one everytime the admin is navigated? Success of the database related uninstall followed by reinstall? Did that change the system response, etc...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Zen Colorbox

    On further review, the installer sql code does not include a configuration setting to ensure that plugin check value is incorporated for an upgrade from a pre-2.1.0 version. The error would continue to occur for such a situation until either the database upgrade (no file change necessary) was performed by either doing a fresh install to a database by either removing the existing settings (uninstall script from previous post) or to a store that has not had this plugin previously installed or by executing a query that would specifically add the setting present currently in the init file. This is something to be addressed in the next version.

    Specifically why? It was a mistake/oversight of my doing.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v155 Attribute image swapped for main image using Colorbox
    By soxophoneplayer in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Jun 2016, 02:34 PM
  2. Trying to fix inline code with colorbox...
    By toomanyknots in forum General Questions
    Replies: 2
    Last Post: 5 Apr 2015, 04:26 PM
  3. IH and Zen Colorbox vs Zen Lightbox?
    By Feznizzle in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 28 Jan 2015, 02:29 AM
  4. Lightbox OR Colorbox
    By Rizla in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 2 May 2014, 11:55 AM
  5. LightBox, SlimBox, ColorBox, which one is better?
    By waterbender in forum General Questions
    Replies: 0
    Last Post: 13 Aug 2013, 07:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg