Forum Replies Created

Viewing 15 replies - 1 through 15 (of 1,156 total)
  • Plugin Author Serhii Pasyuk

    (@pasyuk)

    Thank you for sharing the error log – this explains the issue clearly.

    This is not a bug in Gmedia Gallery. The error:

    Duplicate entry ‘0’ for key ‘PRIMARY’

    means that the wgm5_gmedia_term table has lost the AUTO_INCREMENT attribute on the primary key (term_id).

    When WordPress tries to insert a new tag, MySQL falls back to 0 for the primary key. The first insert may create a row with ID 0, and every next insert then fails with the duplicate key error.

    This usually happens after:

    • a database migration / import-export (phpMyAdmin, hosting migration, backup restore), or
    • a restore tool that didn’t recreate table attributes correctly.

    The plugin creates this table correctly on install, so the schema was modified on the server side.

    How to fix (please run on your database)

    1. Verify the table schema

      SHOW CREATE TABLE wgm5_gmedia_term;

      Check that term_id contains AUTO_INCREMENT. If it does not, the table is broken.

      2. Repair the table

      /* Remove invalid row with ID 0 if it exists */
      DELETE FROM wgm5_gmedia_term WHERE term_id = 0;

      /* Restore AUTO_INCREMENT */
      ALTER TABLE wgm5_gmedia_term
      MODIFY term_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT;

      /* Reset the AUTO_INCREMENT counter (recommended) */
      SET @max_id = (SELECT MAX(term_id) FROM wgm5_gmedia_term);
      SET @sql = CONCAT('ALTER TABLE wgm5_gmedia_term AUTO_INCREMENT = ', IFNULL(@max_id, 0) + 1);
      PREPARE stmt FROM @sql;
      EXECUTE stmt;
      DEALLOCATE PREPARE stmt;

      Once these steps are completed, adding new tags will work normally again.

      Plugin Author Serhii Pasyuk

      (@pasyuk)

      To investigate this properly, could you please send me:

      • The relevant PHP error log entries from your server at the time you attempt to add a new tag
      • If available, the WordPress debug log (wp-content/debug.log) after reproducing the issue

      If you’re able to, please temporarily enable WordPress debug logging:

      // wp-config.php
      define('WP_DEBUG', true);
      define('WP_DEBUG_LOG', true);
      define('WP_DEBUG_DISPLAY', false);

      Then try adding a new tag again and send me the new log entries.

      One more important note:

      PHP 8.4 and above are marked by WordPress as “beta support“ while there are less than 10% websites using it.

      Once I see the error log, I can confirm whether this is a PHP compatibility issue, a database constraint/charset problem, or a permissions problem on the server.

      Plugin Author Serhii Pasyuk

      (@pasyuk)

      Hi,

      I’ve tested the tag creation flow on multiple sites and wasn’t able to reproduce the issue you described – adding new tags during upload, in library, and from the Gmedia → Tags page works as expected on my side.

      To help me investigate further, could you please provide:

      • Your WordPress version
      • Your PHP version
      • The exact error message
      • Whether the issue happens in:
        • the Upload screen,
        • the Media editing screen,
        • the Tags page

      Also, please try this quick check:

      • Temporarily disable other plugins and switch to a default theme (e.g., Twenty Twenty-Four) to rule out conflicts.
      • Clear any cache and try again.

      With these details, I’ll be able to pinpoint whether this is an environment-specific issue or a plugin conflict and provide a fix if needed.

      Plugin Author Serhii Pasyuk

      (@pasyuk)

      Thank you very much for the kind words and for supporting Gmedia Gallery – I really appreciate it.

      I’m glad to hear the free version served you well over the years and that the plugin has been stable for your portfolio.

      Plugin Author Serhii Pasyuk

      (@pasyuk)

      Yes, this is possible.

      In AlbumsList Masonry, you can control exactly what is shown inside the Lightbox modal window.

      Please go to edit your gallery:
      AlbumsList Masonry → Modal Window Settings (Item Info & Share)

      Then configure the options as follows:

      • Uncheck: Show Exif Data
      • (Optional) Uncheck: Show View/Likes/Comments
      • (Optional) Uncheck: Show item date

      This will leave only the Title and Description visible in the Lightbox, without camera details (EXIF) or other metadata.

      After saving the settings, clear your cache and refresh the page to see the changes.

      Plugin Author Serhii Pasyuk

      (@pasyuk)

      Unfortunately, Gmedia Gallery doesn’t support “image hotspots” (interactive areas inside a single image that show labels on hover) out of the box. It can show captions/titles for images and metadata, but not multiple hoverable points within one image.

      Plugin Author Serhii Pasyuk

      (@pasyuk)

      Hello, I’m pretty sure it is fixed with latest version. Please, try clear your browser cache and check again. Contact me via contact form https://codeasily.com/contact/ if it will not help.

      • This reply was modified 2 months, 4 weeks ago by Serhii Pasyuk.
      Plugin Author Serhii Pasyuk

      (@pasyuk)

      Fixed

      Plugin Author Serhii Pasyuk

      (@pasyuk)

      Sorry. Should be fixed in v1.24.1

      Plugin Author Serhii Pasyuk

      (@pasyuk)

      Are you mean in the admin panel? It could be some conflict with other plugin. You can try to enable “Enable Gmedia admin panel Isolation Mode” in Gmedia Settings -> Other Settings

      Plugin Author Serhii Pasyuk

      (@pasyuk)

      Thank you for reaching out and sharing your thoughts on the latest update of the Gmedia plugin. I apologize for any confusion or trouble it may have caused your client. I completely understand their concern, but I assure you that the message was not intended to cause any alarm or suggest that the site was hacked.

      The purpose of the text message is to seek support from those who appreciate the plugin and would like to help me and my family during this challenging time of war in Ukraine. The intention is solely to request voluntary contributions to support us and enable me to continue developing the plugin and provide more free options in it.

      I appreciate your understanding and support in this matter. If there are any further concerns or questions, please don’t hesitate to let me know. I hope everything is going well for you and your clients.

      Plugin Author Serhii Pasyuk

      (@pasyuk)

      Gmedia will not work if you have some plugins which “optimize” JS files or move inline JS code to a separate place. These optimizers broke the gallery code and Gmedia stop working.

      Plugin Author Serhii Pasyuk

      (@pasyuk)

      Добрый день, установите/обновите модули для Gmedia Gallery плагина. Зайдите в Gmedia Modules и установите Phantom модуль и те, которые вам нужны для галерей.

      Plugin Author Serhii Pasyuk

      (@pasyuk)

      You can do it with a CSS code. You can add it at Advanced tab when edit gallery:
      .pgc-rev-lb-d-counter-wrap { display: none; }

      Plugin Author Serhii Pasyuk

      (@pasyuk)

      Ok, there is new release of Gmedia Gallery plugin. Please, update to the v1.21.8 and tell if it fix the problem.

    Viewing 15 replies - 1 through 15 (of 1,156 total)