Title: Code update
Last modified: August 22, 2016

---

# Code update

 *  Resolved [matuh](https://wordpress.org/support/users/matuh/)
 * (@matuh)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/code-update-1/)
 * I know this plugin is discontinued and has no support, but it’s exactly what 
   I need. Everything still works, only the photo manager gives an error. Please
   help me to fix this. Thank you!
 * Warning: Missing argument 2 for wpdb::prepare(), called in /home1/revoluts/public_html/
   mty/wp-content/plugins/photosmash-galleries/admin/bwbps-admin.php on line 3411
   and defined in /home1/revoluts/public_html/mty/wp-includes/wp-db.php on line 
   992
 * The line 3411 is: . PSIMAGESTABLE. ‘.image_id’ . $desc . $limitsql);
 * The whole thing:
 * case “moderation” :
    $sql = $wpdb->prepare(‘SELECT ‘.PSIMAGESTABLE . ‘.*, ‘.$
   wpdb->users.’.user_nicename,’ . $wpdb->users.’.display_name, ‘.$wpdb->users .‘.
   user_login, ‘.PSGALLERIESTABLE.’.gallery_name, ‘ . $wpdb->posts . ‘.post_status‘.
   $cfsql . ” “ . ‘ FROM ‘ . PSIMAGESTABLE . ‘ LEFT OUTER JOIN ‘.PSCUSTOMDATATABLE.’
   ON ‘.PSCUSTOMDATATABLE . ‘.image_id = ‘. PSIMAGESTABLE. ‘.image_id ‘ . ‘ LEFT
   OUTER JOIN ‘.$wpdb->users.’ ON ‘.$wpdb->users . ‘.ID = ‘. PSIMAGESTABLE. ‘.user_id‘.‘
   LEFT OUTER JOIN ‘.PSGALLERIESTABLE . ‘ ON ‘.PSGALLERIESTABLE.’.gallery_id = ‘.
   PSIMAGESTABLE.’.gallery_id ‘ . ‘ LEFT OUTER JOIN ‘ . $wpdb->posts . ‘ ON ‘ . 
   $wpdb->posts . ‘.ID = ‘ . PSIMAGESTABLE . ‘.post_id ‘ . ‘ WHERE ‘. PSIMAGESTABLE.‘.
   status = -1 OR ‘. PSIMAGESTABLE . ‘.alerted IN (-1, 0) ORDER BY ‘ . PSIMAGESTABLE.‘.
   image_id’ . $desc . $limitsql); break;
 * [https://wordpress.org/plugins/photosmash-galleries/](https://wordpress.org/plugins/photosmash-galleries/)

Viewing 1 replies (of 1 total)

 *  [Ciprian Popescu](https://wordpress.org/support/users/butterflymedia/)
 * (@butterflymedia)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/code-update-1/#post-5690620)
 * If it’s not too late, I’ll fix it next week. I just took it over.

Viewing 1 replies (of 1 total)

The topic ‘Code update’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/photosmash-galleries_878f97.svg)
 * [Photosmash](https://wordpress.org/plugins/photosmash-galleries/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photosmash-galleries/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photosmash-galleries/)
 * [Active Topics](https://wordpress.org/support/plugin/photosmash-galleries/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photosmash-galleries/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photosmash-galleries/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ciprian Popescu](https://wordpress.org/support/users/butterflymedia/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/code-update-1/#post-5690620)
 * Status: resolved