Title: 500 Error
Last modified: August 30, 2016

---

# 500 Error

 *  Resolved [kwadman](https://wordpress.org/support/users/kwadman/)
 * (@kwadman)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/)
 * umm, this is the most simple use of the plugin.
 * <?php if(is_desktop()) {};?>
 * Whenever I put anything in the {} I get a 500 – Internal error error on the site.
 * can’t just put text
    can’t echo can’t add HTML
 * Please help 🙂
 * [https://wordpress.org/plugins/php-browser-detection/](https://wordpress.org/plugins/php-browser-detection/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/500-error-55/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/500-error-55/page/2/?output_format=md)

 *  Plugin Author [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/#post-6284247)
 * Post the full code that is throwing the error, it’s probably just a PHP syntax
   problem.
 *  Thread Starter [kwadman](https://wordpress.org/support/users/kwadman/)
 * (@kwadman)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/#post-6284248)
 * Well i’m trying to add it into the header.php
 * at the moment i just put plan text so i knew i could see it then tried to hide
   if on phone.
 * ========================================================
 *  </div><!– .skip-container –>
    <div id=”header”>
 *  <?php responsive_header_top(); // before header content hook ?>
 *  <?php if ( has_nav_menu( ‘top-menu’, ‘responsive’ ) ) {
    wp_nav_menu( array(‘
   container’ => ”, ‘fallback_cb’ => false, ‘menu_class’ => ‘top-menu’, ‘theme_location’
   => ‘top-menu’ ) ); } ?>
 *  <?php responsive_in_header(); // header hook ?>
 * <?php if(is_desktop()) {};?>
 *  <?php if ( get_header_image() != ” ) : ?>
 *  Plugin Author [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/#post-6284253)
 * Without posting the full code it’s hard to tell where the error is coming from.
   Maybe try putting the whole file on Pastebin?
 *  Thread Starter [kwadman](https://wordpress.org/support/users/kwadman/)
 * (@kwadman)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/#post-6284433)
 * Please find header pastebin:
    [http://pastebin.com/qLiHz13v](http://pastebin.com/qLiHz13v)(
   Available for 1 Week)
 *  Plugin Author [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/#post-6284434)
 * So if you delete the line with is_desktop you are saying the error goes away?
 *  Plugin Author [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/#post-6284435)
 * Can you post a link to the site?
 *  Thread Starter [kwadman](https://wordpress.org/support/users/kwadman/)
 * (@kwadman)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/#post-6284437)
 * <?php if(is_desktop()) {};?> < this is OK
 * put something in {} and then the error comes up.
 *  Plugin Author [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/#post-6284438)
 * well then it’s the thing you are pasting in… please post that
 *  Thread Starter [kwadman](https://wordpress.org/support/users/kwadman/)
 * (@kwadman)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/#post-6284439)
 * i’m just testing with egs:
 * {TEXT}
    {echo “text”} {echo text} {echo text} {print “text”}
 *  Thread Starter [kwadman](https://wordpress.org/support/users/kwadman/)
 * (@kwadman)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/#post-6284440)
 * just added a ; inside the {} and your never guess what.
 *  Plugin Author [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/#post-6284441)
 * None of that is valid PHP syntax. You can’t just paste anything – it need to 
   be PHP code, correctly formatted.
 *  Thread Starter [kwadman](https://wordpress.org/support/users/kwadman/)
 * (@kwadman)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/#post-6284442)
 * i only want the last two items to be affected.
 *     ```
       <?php wp_nav_menu( array(
       			'container'       => 'div',
       			'container_class' => 'main-nav',
       			'fallback_cb'     => 'responsive_fallback_menu',
       			'theme_location'  => 'header-menu'
       		) ); ?>
       ```
   
 *  Thread Starter [kwadman](https://wordpress.org/support/users/kwadman/)
 * (@kwadman)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/#post-6284443)
 * echo text worked OK
 *  Plugin Author [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/#post-6284444)
 * try this
 * `<?php if(is_desktop()) { echo "test"; };?>`
 *  Thread Starter [kwadman](https://wordpress.org/support/users/kwadman/)
 * (@kwadman)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/#post-6284445)
 * Yeh this is what i did. I was missing out the rest as i’m only editing inside
   the {}. Sorry if that was not clear. basicly i was missing the ;
 * Please can you show me how to use on the code above.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/500-error-55/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/500-error-55/page/2/?output_format=md)

The topic ‘500 Error’ is closed to new replies.

 * ![](https://ps.w.org/php-browser-detection/assets/icon-256x256.png?rev=999338)
 * [PHP Browser Detection](https://wordpress.org/plugins/php-browser-detection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-browser-detection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-browser-detection/)
 * [Active Topics](https://wordpress.org/support/plugin/php-browser-detection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-browser-detection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-browser-detection/reviews/)

 * 18 replies
 * 2 participants
 * Last reply from: [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/500-error-55/page/2/#post-6284448)
 * Status: resolved