Title: CMJ's Replies | WordPress.org

---

# CMJ

  [  ](https://wordpress.org/support/users/cmj/)

 *   [Profile](https://wordpress.org/support/users/cmj/)
 *   [Topics Started](https://wordpress.org/support/users/cmj/topics/)
 *   [Replies Created](https://wordpress.org/support/users/cmj/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/cmj/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/cmj/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/cmj/engagements/)
 *   [Favorites](https://wordpress.org/support/users/cmj/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Elementor Website Builder - more than just a page builder] Warning : Undefined array key](https://wordpress.org/support/topic/warning-undefined-array-key-23/)
 *  [CMJ](https://wordpress.org/support/users/cmj/)
 * (@cmj)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-23/#post-17403160)
 * Same problem here, but it was fine last night. Woke up this morning and unable
   to access site front end or admin. Tried deactivating plugins, tried downgrading
   PHP, but didn’t help. Error log shows the same error as original poster.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Booster for WooCommerce – PDF Invoices, Abandoned Cart, Variation Swatches & 100+ Tools] PDF Invoice > ctritical error](https://wordpress.org/support/topic/pdf-invoice-ctritical-error/)
 *  [CMJ](https://wordpress.org/support/users/cmj/)
 * (@cmj)
 * [3 years ago](https://wordpress.org/support/topic/pdf-invoice-ctritical-error/#post-16919791)
 * My client’s website is having this exact issue now as well. I tried turning on
   debug mode but I still can’t get a more specific error. Everything is updated,
   and I increased the memory limit in wp_config. I emptied the cache, I tried the
   Simple version of the invoice instead of the custom, I tried the Test vs the 
   non-test, I tried HTML invoices instead of PDF, and I tried a downloadable PDF
   instead of in a new browser window, all to no avail.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error establishing a database connection](https://wordpress.org/support/topic/error-establishing-a-database-connection-695/)
 *  [CMJ](https://wordpress.org/support/users/cmj/)
 * (@cmj)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-695/#post-6331579)
 * They’re all good again across the board here. I just left for a few hours and
   came back, so whatever was up has been cleared.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error establishing a database connection](https://wordpress.org/support/topic/error-establishing-a-database-connection-695/)
 *  [CMJ](https://wordpress.org/support/users/cmj/)
 * (@cmj)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-695/#post-6331539)
 * I’m having the same problem establishing a database connection today, but it’s
   happening an all Godaddy WordPress sites I have access to, and they aren’t all
   from the same hosting account, so I now hope it’s them and not me. The sites 
   themselves still appear fine from the frontend, and I can log in via FTP, but
   I can’t get into any WordPress admin areas.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Wrapping do_shortcode around php](https://wordpress.org/support/topic/wrapping-do_shortcode-around-php/)
 *  Thread Starter [CMJ](https://wordpress.org/support/users/cmj/)
 * (@cmj)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/wrapping-do_shortcode-around-php/#post-6140974)
 * Thanks for the reply. And it does indeed work! Thanks so much.
 * Before I got your reply, I actually fell upon a solution as well. I don’t know
   why it works, and it was just trial and error, so yours is probably better. But
   at any rate, I had this:
 * <?php
    ob_start(); if(isset($_GET[‘view’])){ $view_type = $_GET[‘view’]; }else{/*
   Theme Options Listing Layout */ $view_type = get_option(‘theme_listing_layout’);}
 *  if( $view_type == ‘grid’ ){
    get_template_part(“template-parts/grid-listing-
   container”); }else{ get_template_part(“template-parts/listing-container”); } 
   $comments_output = ob_get_contents(); ob_end_clean(); echo do_shortcode(‘[upme_private]’.
   $comments_output.'[/upme_private]’); ?>

Viewing 5 replies - 1 through 5 (of 5 total)