Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @aligibbon,

    The gallery you are using is a bit particular, so I am not sure will work. However, you can try something.

    Have a look in the code of the plugin, in the mgcl_core.php file. Search for this line:

    if ( preg_match( '/wp-image-([0-9]{1,10})/i', $classes, $matches ) )

    Just above it, add this line:

    $mediaId = $this->parsingEngine === 'HtmlDomParser' ? $element->{'data-attachment-id'} : $element->attr('data-attachment-id');

    Please try ??

    Thread Starter aligibbon

    (@aligibbon)

    Hi @tigroumeow

    I did this and now I have a HTTP 500 ERROR.

    I can’t even login to the back end of my site to fix it.

    Thread Starter aligibbon

    (@aligibbon)

    So,

    I’m actually at a complete loss of words. After trying to restore my site to yesterday – since your suggestion of modifying the mgcl_core.pho file gave me an HTTP 500 Error – no data can be found.

    It’s gone. All gone.

    Any suggestions you have to help me and support work through this would be greatly appreciated since I’d hate to lose over 7 years of work and over 800 posts simply because of your instructions above.

    @tigroumeow please reach out when you can.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @aligibbon,

    That is, of course, totally impossible. The plugin wouldn’t delete your work, website, or anything.

    The line I told you to add is actually working, so you might have pasted at the wrong place.

    An HTTP 500 Error is a standard error. Since you modified this plugin and that the code for it doesn’t work properly anymore, you simply need to remove that plugin using FTP or through the file explorer available through your hosting service.

    Don’t worry, nothing is lost ?? It’s just an error, and that will happen again someday, that is common.

    Thread Starter aligibbon

    (@aligibbon)

    Hi Jordy,

    Sorry, I didn’t fully explain.

    After adding the code you suggested, I got the HTTP 500 Error right away. It could be a coincidence. I couldn’t access the site at all, not the admin page or the login page.

    So, about an hour later, from my hosting service I tried to back up to yesterday (I added the code you suggested the morning of March 30, and tried to back up to March 29). It’s with the back up that everything is now gone.

    The issue I’m having is I can’t get into my site on the back end to remove the code error since there is no data.

    I’ll let support know your suggestions. Right now, I’m just super hesitant to try and fix the issue, since if there is only one way to get the data back, I don’t want to risk messing that up.

    On a different note, I’m perplexed why the gallery I was using is particular. It’s just the standard gallery in WordPress’s Gutenberg – is there another gallery your plugin works better with?

    I’m happy you’re hopeful that nothing is lost – at this point, I’d take a back up to last year – haha. But, if in a week all is back, I’ll still want to use a gallery with custom links as a way of indexing all of the blog posts on my site.

    Thanks for getting back to me @tigroumeow – much appreciated.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Nothing is lost ?? That’s impossible. Don’t try to get your last backup or anything like that. Simply remove the plugin by FTP and everything will work fine. That’s what millions of website owners do every day, haha, the way to get WordPress back when there is an issue with a particular plugin. It not with this plugin, it will probably happen with another plugin one day, so it’s better to learn how to deal with this: how to use FTP, find the folder, and delete. That’s really important.

    You should also know how to see the content of your PHP Error Logs. If you knew, we would understand what was wrong in that code modification right away. So that’s also very important.

    Gutenberg Gallery generates this CSS class for images. So I guess your theme is modifying the gallery generation process. That’s not surprising, many themes do that.

    But first, get your website back ??

    Thread Starter aligibbon

    (@aligibbon)

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Links leading to Images, not URL page.’ is closed to new replies.