Dynamic Content Gallery Error Messages

This is the Error Messages Guide for the Dynamic Content Gallery plugin for WordPress. Links to other resources for this plugin can be found in the menu in the sidebar.

Current version of the plugin is: 3.3.6

This guide provides explanations and suggested fixes for the plugin’s Error Messages (shown as HTML comments in the Page Source). To enable Error messages, check the Error messages box in the plugin’s Settings page.

  1. Rating: +0

    Positive Negative

    DCG Error Message 1

    Page Source message

    DCG Error Message 1: You have only specified one Page ID in the DCG Settings page.
    Rating: Critical. Fix error in order to display gallery.
    Fix: Enter a minimum of 2 valid Page IDs in the DCG Settings page for the gallery to work.

    The following is also displayed in the browser where the gallery should be

    Dynamic Content Gallery Error: View page source for details.

    Can I ignore it?

    No. It's a Critical error and you need to fix it in order to display the gallery.

    How do I fix it?

    You have selected Pages as the Gallery Method, but you have only specified 1 Page ID in the plugin's Settings page. The DCG requires a minimum of 2 Page ID's to work. Enter a minimum of 2 valid Page ID's in the Settings page.

    Documentation and Configuration resources

    See Docs - 2.3 PAGES Settings (Required if you selected Pages in Gallery Method)

    Other info

    This error is triggered if only 1 Page ID is entered in the DCG Settings page. It does not check the validity of the specified Page ID (ie whether that Page ID actually exists in the database).

    DCG Error Message 2 is displayed if no Page ID's have been specified in DCG Settings
    DCG Error Message 5 is displayed if one or more specified Page ID's are invalid
    DCG Error Message 6 is displayed if all the specified Page ID's are invalid
    DCG Error Message 9 is displayed if the SQL query finds only one valid Page ID

    This error is relevant to the following Gallery Methods:

    Pages

  2. Rating: +0

    Positive Negative

    DCG Error Message 2

    Page Source message

    DCG Error Message 2: You have not specified any Page IDs in the DCG Settings page.
    Rating: Critical. Fix error in order to display gallery.
    Fix: Enter a minimum of 2 valid Page IDs in the DCG Settings page for the gallery to work.

    The following is also displayed in the browser where the gallery should be:

    Dynamic Content Gallery Error: View page source for details.

    Can I ignore it?

    No. It's a Critical error and you need to fix it in order to display the gallery.

    How do I fix it?

    You have selected Pages as the Gallery Method, but you have not specified any Page ID's. Enter a minimum of 2 Page ID's in the Settings page.

    Documentation and Configuration resources

    See Docs - 2.3 PAGES Settings (Required if you selected Pages in Gallery Method)

    Other info

    This error is triggered if there are no Page ID's specified in the DCG Settings page.

    DCG Error Message 1 is displayed if only one Page ID has been specified in DCG Settings
    DCG Error Message 5 is displayed if one or more specified Page ID's are invalid
    DCG Error Message 6 is displayed if all the specified Page ID's are invalid
    DCG Error Message 9 is displayed if the SQL query finds only one valid Page ID

    This error is relevant to the following Gallery Methods:

    Pages

  3. Rating: +0

    Positive Negative

    DCG Error Message 3

    Page Source message

    DCG Error Message 3: DCG Metabox Slide Pane Description is empty and Default Description does not exist.
    Rating: Non-critical. This error does not prevent the gallery from working properly.
    Fix: Enter a description in the DCG Metabox Slide Pane Description field for this Page/Post and/or define a Default Description in the DCG Settings page.

    Can I ignore it?

    Yes. It's a non-critical error and is for information purposes only, and can be safely ignored if you don't want any Descriptions to appear in the Slide Pane.

    How do I fix it?

    Your DCG Settings page Slide Pane Descriptions are set to Manual but you have not entered a Slide Pane Description in the Write Post/Page DCG Metabox, nor have you created a Default Description. To clear the error, either enter a Slide Pane Description in the Write Post/Page DCG Metabox for this Post/Page, or create a Default Description in the DCG Settings page. If you don't want to display any Descriptions in the Slide Pane you can safely ignore this error message.

    Documentation and Configuration resources

    See Docs - 3. Slide Pane Descriptions (OPTIONAL)

    Other info

    None.

    This error is relevant to the following Gallery Methods:

    Multi Option, One Category, Pages

  4. Rating: +0

    Positive Negative

    DCG Error Message 4

    Page Source message

    DCG Error Message 4: DCG Metabox Image URL is empty and Default Image does not exist.
    Rating: Non-critical. This error does not prevent the gallery from working properly.
    Fix: Enter an image URL in the DCG Metabox Image URL field for this Page/Post and/or define a Default Image in the DCG Settings page.

    Can I ignore it?

    Not if you want a good-looking gallery. It's a non-critical error and won't stop the gallery working, but you will see the plugin's "Error" image instead of a proper image. In other words, you should fix it.

    How do I fix it?

    This error is triggered because the DCG Metabox Image URL field for the relevant Post/Page is empty, AND your Default Image cannot be found. To fix this, do the following:

    • Enter a suitable Image URL in the Write Post/Page DCG Metabox for the relevant Post/Page.

    This error message also means that you either haven't set up your Default Images properly, or you have, but the Default Image can't be found at its expected location on your server. For the former:

    • If you're using the Multi Option or One Category Gallery Methods, check that the URL to your Default Images folder is correct in the Settings Page, and that you have named the Default Images correctly, and uploaded them to the folder you have specifed in the Settings Page.
    • If you're using the Pages Gallery Method, check that the URL to your Default Image (there can only be one default image when using Pages) is correct and that your specified file is located at that URL.
    Note for WPMU users

    Default Images are not available when the DCG is used with WPMU. Just follow this step to clear the error:

    • Enter a suitable Image URL in the Write Post/Page DCG Metabox for the relevant Post/Page.
    Documentation and Configuration resources

    See Docs - How to assign an image and a description to each Post/Page
    See Docs - How to name and organise your default images

    Other info

    Note: this error is always accompanied by the display of the plugin's "Error" image for the Post/Page with the missing image. However, this error is NOT triggered in the event you have entered a Image URL in the DCG Metabox and this image can't be found. If you see a black loading bar instead of the plugin's "Error" image (and all other images are displaying fine), it means that there is a URL in the DCG Metabox Image URL field but the URL entered here is wrong. Check the Image URL you have entered in the DCG Metabox.

    This error is relevant to the following Gallery Methods:

    Multi Option, One Category, Pages

  5. Rating: +0

    Positive Negative

    DCG Error Message 5

    Page Source message

    DCG Error Message 5: Not all of the selected Page IDs are valid Pages.
    Rating: Non-critical. This error does not prevent the gallery from working properly.
    Fix: Check the Page IDs entered in the DCG Settings page.
    Number of Pages selected in DCG Settings = X
    Number of Pages found = Y

    Can I ignore it?

    Yes. It's a non-critical error, and is for information purposes only, and will not prevent the gallery from working properly. However, this error means that one or more of the Page ID's you have specified in the Settings page is not a valid Page ID and, therefore, your gallery is probably not displaying all of the Pages you were expecting to see.

    How do I fix it?

    You have selected Pages as the Gallery Method, but one or more of the Page ID's specified in the Settings page is not a valid Page ID. Check the Page ID's specified in the Settings page.

    Documentation and Configuration resources

    See Docs - 2.3 PAGES Settings (Required if you selected Pages in Gallery Method)

    Other info

    This error is triggered if the number of Page ID's specified in the DCG Settings page does not match the number of Pages found by the SQL query.

    DCG Error Message 1 is displayed if only one Page ID has been specified in DCG Settings
    DCG Error Message 2 is displayed if no Page ID's have been specified in DCG Settings
    DCG Error Message 6 is displayed if all the specified Page ID's are invalid
    DCG Error Message 9 is displayed if the SQL query finds only one valid Page ID

    This error is relevant to the following Gallery Methods:

    Pages

  6. Rating: +0

    Positive Negative

    DCG Error Message 6

    Page Source message

    DCG Error Message 6: None of the selected Page IDs are valid Pages or the database query has failed.
    Rating: Critical. Fix error in order to display gallery.
    Fix: Check the validity of the Page IDs entered in the DCG Settings page. At least 2 Page IDs must be valid.
    Fix: If at least 2 of the selected Page IDs are valid, check server error logs.

    The following is also displayed in the browser where the gallery should be:

    Dynamic Content Gallery Error: View page source for details.

    Can I ignore it?

    No. It's a Critical error and you need to fix it in order to display the gallery.

    How do I fix it?

    This error means that you have entered at least 2 Page ID's in the Settings page but none of the Page ID's are valid Page ID's. Check the Page ID's specified in the Settings page.

    Documentation and Configuration resources

    See Docs - 2.3 PAGES Settings (Required if you selected Pages in Gallery Method)

    Other info

    This error is triggered if none of the Page ID's specified in the DCG Settings page exist in the database.

    DCG Error Message 1 is displayed if only one Page ID has been specified in DCG Settings
    DCG Error Message 2 is displayed if no Page ID's have been specified in DCG Settings
    DCG Error Message 5 is displayed if one or more specified Page ID's are invalid
    DCG Error Message 9 is displayed if the SQL query finds only one valid Page ID

    This error is relevant to the following Gallery Methods:

    Pages

  7. Rating: +0

    Positive Negative

    DCG Error Message 7

    Page Source message

    DCG Error Message 7: You have less Posts in the selected Category than the number specified in the Settings Page.
    Rating: Non-critical. This error does not prevent the gallery from working properly.
    Fix: Reduce the "Number of Posts to display" in the DCG Settings page to match the Number of Posts found.
    Number of Posts to display as per DCG Settings = X
    Number of Posts found = Y

    Can I ignore it?

    Yes. It's a non-critical error, and is for information purposes only, and does not prevent the gallery from working properly.

    How do I fix it?

    This error means that you are using the One Category Gallery Method and have selected the Number of Posts to display which is greater than the actual number of Posts that exist in this Category. In the Settings page, change the Number of Posts to display to equal the number "Y" shown in the Page Source error message.

    Documentation and Configuration resources

    See Docs - 2.2 ONE CATEGORY Settings (Required if you selected One Category in Gallery Method)

    Other info

    None.

    This error is relevant to the following Gallery Methods:

    One Category

  8. Rating: +0

    Positive Negative

    DCG Error Message 8

    Page Source message

    DCG Error Message 8: The wp_query failed to find any Posts.
    Rating: Critical. Fix error in order to display gallery.
    Fix: Deactivate and reactivate the plugin and try again.

    The following is also displayed in the browser where the gallery should be:

    Dynamic Content Gallery Error: View page source for details.

    Can I ignore it?

    No. It's a Critical error and you need to fix it in order to display the gallery.

    How do I fix it?

    Theoretically, this error can never happen. Try deactivating and reactivating the plugin to see if this fixes it.

    Other info

    Note: Technically, this error cannot happen due to the validation checks built into the plugin. If this error does occur, please contact me via the Support Forum so that I can investigate further.

    This error is relevant to the following Gallery Methods:

    One Category

  9. Rating: +0

    Positive Negative

    DCG Error Message 9

    Page Source message

    DCG Error Message 9: Only one of the Page IDs specified in the DCG Settings page is a valid Page ID in the database.
    Rating: Critical. Fix error in order to display gallery.
    Fix: Ensure that there are a minimum of 2 valid Page IDs specified in the DCG Settings page.

    The following is also displayed in the browser where the gallery should be:

    Dynamic Content Gallery Error: View page source for details.

    Can I ignore it?

    No. It's a Critical error and you need to fix it in order to display the gallery.

    How do I fix it?

    Check that the Page ID's specified in the DCG Settings Page are correct.

    Documentation and Configuration resources

    See Docs - 2.3 PAGES Settings (Required if you selected Pages in Gallery Method)

    Other info

    This check is performed on the results of the SQL query and this error is triggered if only one of the Page ID's specified in the DCG Settings page is a valid Page ID.

    DCG Error Message 1 is displayed if only one Page ID has been specified in DCG Settings
    DCG Error Message 2 is displayed if no Page ID's have been specified in DCG Settings
    DCG Error Message 5 is displayed if one or more specified Page ID's are invalid
    DCG Error Message 6 is displayed if all the specified Page ID's are invalid

    This error is relevant to the following Gallery Methods:

    Pages

  10. Rating: +0

    Positive Negative

    DCG Error Message 10

    Page Source message

    DCG Error Message 10: The plugin is unable to generate any output.
    Rating: Critical. Fix error in order to display gallery.
    Fix: Check that the plugin has been installed properly and that all files
    contained within the download ZIP file have been uploaded to your server.

    The following is also displayed in the browser where the gallery should be:

    Dynamic Content Gallery Error: View page source for details.

    Can I ignore it?

    No. It's a Critical error and you need to fix it in order to display the gallery.

    How do I fix it?

    Reinstall the plugin.

    Other info

    This check is performed on the output of dynamic-gallery.php. The appearance of this error means that there is a problem with the installation of the plugin.

    This error is relevant to the following Gallery Methods:

    Multi Option, One Category, Pages

  11. Rating: +0

    Positive Negative

    DCG Error Message 11

    Page Source message

    DCG Error Message 11: You have defined less than 2 Post Selects in the DCG Settings page.
    Rating: Critical. Fix error in order to display gallery.
    Fix: Enter a minimum of 2 valid Post Selects in the DCG Settings page for the gallery to work.

    The following is also displayed in the browser where the gallery should be:

    Dynamic Content Gallery Error: View page source for details.

    Can I ignore it?

    No. It's a Critical error and you need to fix it in order to display the gallery.

    How do I fix it?

    Enter at least 2 Post Selects in the DCG Settings page.

    Documentation and Configuration resources

    See Docs - 2.1 MULTI OPTION Settings (Required if you selected Multi Option in Gallery Method)

    Other info

    This error is triggered if there are less than 2 Image slots with specified Post Selects in the DCG Settings page.

    This error is relevant to the following Gallery Methods:

    Multi Option

  12. Rating: +0

    Positive Negative

    DCG Error Message 12

    Page Source message

    DCG Error Message 12: The Post for at least one of your chosen Image Slots could not be found.
    Rating: Non-critical. This error does not prevent the gallery from working properly.
    This could be caused by, for example, defining a Post Select of 4 but only 3 Posts exist in that Category.
    Look at the XHTML comments to see which Image # is missing.
    Fix: Check the Post Select for this missing Image # in the DCG Settings page.
    Number of Posts to display as per DCG Settings = X
    Number of Posts found = Y

    Can I ignore it?

    Yes. It's a non-critical error, and is for information purposes only, and does not prevent the gallery from working properly. However, your gallery is not displaying all of the Posts you were expecting to see, so you should probably fix it.

    How do I fix it?

    Look at the Page Source and identify the Image # which is missing from the gallery's XHTML, then check the Post Select for this Image slot in the DCG Settings page.

    See Docs - 2.1 MULTI OPTION Settings (Required if you selected Multi Option in Gallery Method)

    Other info

    This error is triggered if the number of Image slots with specified Post Selects in the DCG Settings page does not match the number of Posts found by the WP_Query loops.

    This error is relevant to the following Gallery Methods:

    Multi Option

  13. Rating: +0

    Positive Negative

    DCG Error Message 13

    Page Source message

    DCG Error Message 13: The Post for Image Slot 1 could not be found.
    Rating: Critical. Fix error in order to display gallery.
    This is because the plugin has set a default category for this Image Slot, but there are no posts in this category.
    Fix: Go to the DCG Settings page and click Save Changes. The error should then clear itself.

    The following is also displayed in the browser where the gallery should be:

    Dynamic Content Gallery Error: View page source for details.

    Can I ignore it?

    No. It's a Critical error and you need to fix it in order to display the gallery.

    How do I fix it?

    Go to the DCG Settings page and click Save Changes. The error should then clear itself.

    See Docs - 2.1 MULTI OPTION Settings (Required if you selected Multi Option in Gallery Method)

    Other info

    This error is triggered if no Post can be found for Image slot #1.

    This error is relevant to the following Gallery Methods:

    Multi Option