Forum Replies Created

Viewing 1 replies (of 1 total)
  • crmart

    (@crmart)

    Hi guys

    We got the same error and figured out why it happened and how you can fix it.

    If you take a look at the file: plugins/file-gallery/includes/media-settings.php on line 270 (version 1.7.4.1), you’ll see this line:
    $values = isset($val['values']) ? "'" . $val['values'] . "'" : 0;

    The problem occurs if in the $val[‘values’] content a single quote is present.
    So we fixed it as follows:
    $values = isset($val['values']) ? "'" . str_replace("'", "'", $val['values']) . "'" : 0;

    I’m not 100% sure this is the actual correct way to fix it, but it seems to work perfectly fine on our site.

Viewing 1 replies (of 1 total)