Thread: Zen Colorbox

Page 21 of 35 FirstFirst ... 11192021222331 ... LastLast
Results 201 to 210 of 345
  1. #201
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,547
    Plugin Contributions
    9

    Default Re: Zen Colorbox

    Quote Originally Posted by mc12345678 View Post
    There appears to be something wrong with the zen_colorbox function that is causing the image filename not to be returned, something similar to what was happening before. Would check to validate that the correct file has been uploaded.

    As to the image "size", in the html, I don't see a size discrepancy. Would have to look around to see how the image is "appearing" as 50x50, but don't see anything obvious. On my device it takes the full screen when selecting the additional images.
    Hi, any progress on this? I won't be around for a while since the emergency of Irma (I'm in Puerto Rico), but I would like to take again on this when I come back.

    I figured out the add. images size issue, so the only thing to be solved is the main image not opening.
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  2. #202
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: Zen Colorbox

    Quote Originally Posted by ideasgirl View Post
    Hi, any progress on this? I won't be around for a while since the emergency of Irma (I'm in Puerto Rico), but I would like to take again on this when I come back.

    I figured out the add. images size issue, so the only thing to be solved is the main image not opening.
    "Externally" I can't identify why the software on your site is "deleting" the filename that would be expected is not provided back. Either I need to provide you troubleshooting/data collection actions, the software on the live system needs to be verified to be that which is provided in the download/as provided in github, or access provided to do the same (seeing that you are in prepations to be away).

    Let me know how you would like to proceed at this point in light of natural events.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #203
    Join Date
    Jun 2014
    Posts
    157
    Plugin Contributions
    0

    Default Re: Zen Colorbox

    Quote Originally Posted by mc12345678 View Post
    "Externally" I can't identify why the software on your site is "deleting" the filename that would be expected is not provided back. Either I need to provide you troubleshooting/data collection actions, the software on the live system needs to be verified to be that which is provided in the download/as provided in github, or access provided to do the same (seeing that you are in prepations to be away).

    Let me know how you would like to proceed at this point in light of natural events.
    Quote Originally Posted by ideasgirl View Post
    I just installed it and when main image tries to open, it continues in a loop and doesn't open, on the other hand I can open additional images and I can browse from pic to pic but can't get main image to show. It will stay in a continues loop.

    This is the error from the logs:
    This is the error from the logs:
    [30-Aug-2017 20:00:29] PHP Fatal error: Call to undefined function zen_lightbox() in /.../includes/templates/my_template/templates/tpl_modules_main_product_image.php on line 24
    @mc12345678 Did you notice the error in the log file referring to zen_lightbox()?

    Cheers,

    jpda

  4. #204
    Join Date
    Jul 2012
    Posts
    16,799
    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...

  5. #205
    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

  6. #206
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,823
    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!

  7. #207
    Join Date
    Jul 2012
    Posts
    16,799
    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...

  8. #208
    Join Date
    Jul 2012
    Posts
    16,799
    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...

  9. #209
    Join Date
    Apr 2008
    Posts
    446
    Plugin Contributions
    1

    Default Re: Zen Colorbox

    Hello all.
    I believe I found a bug (((??))).
    With Display Image Counter turned off, the image opens up as a separate page (not as an overlay) and an error is generated - Uncaught SyntaxError: Unexpected token }
    I was able to pinpoint the error to includes/classes/zen_colorbox/options.php
    For some reason the last empty echo is the one causing the error and the image to open in a separate window.

    So replacing this

    PHP Code:
    echo 
    ',current:'
    if (
    ZEN_COLORBOX_COUNTER == 'true'
    {
        echo 
    '"{current} of {total}"'
    }
    else 
    {
        echo 
    ''

    with this

    PHP Code:
    echo 
    ',current:'
    if (
    ZEN_COLORBOX_COUNTER == 'true'
    {
        echo 
    '"{current} of {total}"'
    }
    else 
    {
        echo 
    '"Image {current}"'

    solved the issue for me. The image overlay works now as it should and it displays the current image number only which is what I wanted.

  10. #210
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: Zen Colorbox

    Quote Originally Posted by mvstudio View Post
    Hello all.
    I believe I found a bug (((??))).
    With Display Image Counter turned off, the image opens up as a separate page (not as an overlay) and an error is generated - Uncaught SyntaxError: Unexpected token }
    I was able to pinpoint the error to includes/classes/zen_colorbox/options.php
    For some reason the last empty echo is the one causing the error and the image to open in a separate window.

    So replacing this

    PHP Code:
    echo 
    ',current:'
    if (
    ZEN_COLORBOX_COUNTER == 'true'
    {
        echo 
    '"{current} of {total}"'
    }
    else 
    {
        echo 
    ''

    with this

    PHP Code:
    echo 
    ',current:'
    if (
    ZEN_COLORBOX_COUNTER == 'true'
    {
        echo 
    '"{current} of {total}"'
    }
    else 
    {
        echo 
    '"Image {current}"'

    solved the issue for me. The image overlay works now as it should and it displays the current image number only which is what I wanted.
    While wasn't able to reproduce the problem, I can see that having nothing (not even empty quotes) could potentially be a problem.

    I believe the intent was to not display any information as compared to identifying an image number; however, it can be controlled/edited as desired/shown above.

    Because the default setting is: "image {current} of {total}", in order to not display the "current" (counter as called in the settings) the value has to be altered, changed, or set. My recommendation for a non-counter display would be to set it to a pair of double quotes as below. This will provide a true setting/value which will be empty as compared to the "nothingness" that was provided in the distribution.

    Code:
    echo 
    ',current:'; 
    if (ZEN_COLORBOX_COUNTER == 'true') 
    {
        echo '"{current} of {total}"'; 
    }
    else 
    {
        echo '""'; 
    }
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 21 of 35 FirstFirst ... 11192021222331 ... LastLast

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR