Title: Problems with Shortcode
Last modified: October 14, 2018

---

# Problems with Shortcode

 *  [alanrands](https://wordpress.org/support/users/alanrands/)
 * (@alanrands)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/problems-with-shortcode-3/)
 * I have a download issue which has me puzzled
    I had this setup working perfectly
   on an internal site during development and when moved to a live site I have the
   issue arise
 * I am using the shortcode
    [email-download download_id=”500″ contact_form_id=”
   45″] and get a blank screen instead of a page with a contact form 7 form lets
   call it “e-book”
 * I have tested as follows
 * in “e-book” I have tried placing the shortcode for just the contact form 7 ie
   [
   contact-form-7 id=”45″ title=”e-book registration”] and this works fine. It displays
   the page with the contact form
 * in the “e-book” I have also tried the shortcode for the download
    [download id
   =”500″] It displays the link to the document
 * Each time I change anything, I clear the Cache at the server and also in the 
   browser to make sure I am not picking up anything old.
 * The file I am trying to display is a pdf document
 * The testing above shows that Contact Form 7 is doing its job OK as is Download
   Monitor
 * I then tried Deactivating both Download Monitor and Email Before Download and
   re Activating them both, clearing Caches and trying again with no luck
 * Any ideas on how to attack this would be greatly appreciated. From what I read
   my shortcode is in the correct format.
 * Re- the link provided, just click on the e-Book download image on any page
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblems-with-shortcode-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [alanrands](https://wordpress.org/support/users/alanrands/)
 * (@alanrands)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/problems-with-shortcode-3/#post-10783523)
 * I tried again today and set WP logs on and caught the following
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in /home/bsnelsoncom/public_html/wp-content/plugins/email-before-download/includes/
   class-email-before-download-db.php on line 56
    Fatal error: Uncaught Error: Call
   to undefined function mb_convert_encoding() in /home/bsnelsoncom/public_html/
   wp-content/plugins/email-before-download/includes/class-email-before-download-
   form.php:35 Stack trace: #0 /home/bsnelsoncom/public_html/wp-content/plugins/
   email-before-download/includes/class-email-before-download-shortcode.php(67):
   Email_Before_Download_Form->html() #1 /home/bsnelsoncom/public_html/wp-includes/
   shortcodes.php(319): Email_Before_Download_Shortcode->init_shortcode(Array, ”,’
   email-download’) #2 [internal function]: do_shortcode_tag(Array) #3 /home/bsnelsoncom/
   public_html/wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\[(\\[?)(
   email\\…’, ‘do_shortcode_ta…’, ‘<p>Get your per…’) #4 /home/bsnelsoncom/public_html/
   wp-includes/class-wp-hook.php(286): do_shortcode(‘<p>Get your per…’) #5 /home/
   bsnelsoncom/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘
   <p>Get your per…’, Array) #6 /home/bsnelsoncom/public_html/wp-includes/post-template.
   php(240): apply_filters(‘the_cont in /home/bsnelsoncom/public_html/wp-content/
   plugins/email-before-download/includes/class-email-before-download-form.php on
   line 35
 *  [rheindigital](https://wordpress.org/support/users/rheindigital/)
 * (@rheindigital)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/problems-with-shortcode-3/#post-11144245)
 * Hi,
 * i have the same problem.
 * Dont ask me why ut this worked for me. But now it doesnt collects emails.
 * [contact-form-7 id=”77972″ title=”Download”]
 * just replace your contact form ID.

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

The topic ‘Problems with Shortcode’ is closed to new replies.

 * ![](https://ps.w.org/email-before-download/assets/icon-256x256.jpg?rev=1813522)
 * [Email Before Download](https://wordpress.org/plugins/email-before-download/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-before-download/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-before-download/)
 * [Active Topics](https://wordpress.org/support/plugin/email-before-download/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-before-download/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-before-download/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [rheindigital](https://wordpress.org/support/users/rheindigital/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/problems-with-shortcode-3/#post-11144245)
 * Status: not resolved