Support » Plugin: Dynamic Content Gallery » DCG is not working after updating wordpress 3.5.2.

Viewing 15 replies - 16 through 30 (of 40 total)
  • 1) Go to wp-content/plugins/dynamic-content-gallery-plugin/includes
    2) Save the code above to “nonce.patch”
    3) Backup the existing file with cp dfcg-admin-metaboxes.php dfcg-admin-metaboxes.php.orig
    4) Apply the patch to dfcg-admin-metaboxes.php by typing patch < nonce.patch

    Alternately, backup dfcg-admin-metaboxes.php and edit line 218:

    if ( !wp_verify_nonce( isset($_POST['dfcg_metabox_noncename']), DFCG_FILE_HOOK )) {

    to read:

    if ( !isset($_POST['dfcg_metabox_noncename']) || !wp_verify_nonce( $_POST['dfcg_metabox_noncename'], DFCG_FILE_HOOK )) {

    This works, thank you!

    That seems to be working. Thanks for the help!

    Hopefully we see an official DFCG update soon to fix this.


    Worked here too, thanks very much indeed 🙂

    I have the same problem with my website:

    @eamondaly you deserve a medal. Thanks so much.

    I have replaced the line 218 and it’s working.
    Thanks “eamondaly”!

    eamondaly – Your fix worked like magic for me, too!

    Thank you so much for participating in the forums and posting information that’s so valuable, yet out of reach for many of us!


    Carolina Epicurean

    I want to use eamondaly’s remedy but I don’t know what the heck I’m doing and am afraid to mess with the site which is live.

    Before I try to use the solution, please tell me if it sounds like I understand the instructions. By the way, I am assuming cp means cpanel.

    1) Using Filezilla ftp I found dfcg-admin-metaboxes.php

    2) I make a copy of dfcg-admin-metaboxes.php and name it dfcg-admin-metaboxes.php.original

    3) Using Notepad, I take the code eamondaly created and save it to a file that I save as nonce.patch

    Now this is where I’m lost (could be I was lost at step 3). Where do I place the nonce.patch file. Does it go here /wp-content/plugins/dynamic-content-gallery-plugin/includes

    4) then using FTP I copy dfcg-admin-metaboxes.php to my computer

    5) using Notepad I open dfcg-admin-metaboxes.php and type patch < nonce.patch I’m guessing that I’d type that at the bottom of the page

    6) then while the file is still open and still using Notepad I look for this line

    if ( !wp_verify_nonce( isset($_POST['dfcg_metabox_noncename']), DFCG_FILE_HOOK )) {

    and change it to read

    if ( !isset($_POST['dfcg_metabox_noncename']) || !wp_verify_nonce( $_POST['dfcg_metabox_noncename'], DFCG_FILE_HOOK )) {

    7) I save dfcg-admin-metaboxes.php

    8) I upload dfcg-admin-metaboxes.php to wp-content/plugins/dynamic-content-gallery-plugin/includes

    Thanks so much for providing this support

    No, smkyle1: the patch option is if you have shell access to your plugins directory, and it sounds like you do not. Ignore that entirely. For your environment:

    1) Using FTP, copy dfcg-admin-metaboxes.php to your computer.

    2) Rename the file on your computer to dfcg-admin-metaboxes.php.orig. That is your backup in case something goes wrong.

    3) Using FTP, copy dfcg-admin-metaboxes.php to your computer again.

    4) Open dfcg-admin-metaboxes.php in Notepad.

    5) Change the line:

    if ( !wp_verify_nonce( isset($_POST['dfcg_metabox_noncename']), DFCG_FILE_HOOK )) {

    to read:

    if ( !isset($_POST['dfcg_metabox_noncename']) || !wp_verify_nonce( $_POST['dfcg_metabox_noncename'], DFCG_FILE_HOOK )) {

    6) Save the file and close Notepad.

    7) Upload the modified dfcg-admin-metaboxes.php back to your website using FTP.

    Thanks a ton eamondaly!

    Kudos, eamondaly! I was hesitant to try to help Tomahoochi, because I’m not an experienced coder and didn’t want to confuse things.

    I’ve been in Tomahoochi’s place, not understanding instructions.

    So I wanted to thank you for taking the time to break it down to an easy-to-follow walk-through.

    eamondaly — it worked like a charm!!

    Thank you for being so generous with your time.

    THANK YOU!!! It works now!


    I tried to fix it with Eamondaly solution but now I got this message on my wp-admin:

    Parse error: syntax error, unexpected $end in /home/yuhils/public_html/wp-fiestaquebec/wp-content/plugins/dynamic-content-gallery-plugin/includes/dfcg-admin-metaboxes.php on line 294

    Please help me!


Viewing 15 replies - 16 through 30 (of 40 total)
  • The topic ‘DCG is not working after updating wordpress 3.5.2.’ is closed to new replies.