Title: Updated and getting errors
Last modified: August 22, 2016

---

# Updated and getting errors

 *  [CBPoeGA](https://wordpress.org/support/users/cbpoega/)
 * (@cbpoega)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/updated-and-getting-errors/)
 * updated to 3.9.2 the site was working fine prior to this upgrade.
    I’m an using
   Options Theme on this website. milleniumirrigation.com
 * Apparently with the upgrade came a change to the php file located:
    /hermes/waloraweb001/
   b401/moo.millirr/home/wp-content/themes/options/framework/functions/common.php
 * I am getting the following error:
    Fatal error: Cannot redeclare has_shortcode()(
   previously declared in /hermes/waloraweb001/b401/moo.millirr/home/wp-includes/
   shortcodes.php:157) in /hermes/waloraweb001/b401/moo.millirr/home/wp-content/
   themes/options/framework/functions/common.php on line 24
 * EXTREME AMATEUR at this – our office assistant did this without backing up 🙁
   
   Need to see if I can get help to correct this to get the site restored. Cannot
   login to admin either.
 * Here is the file (however, once line 24 is fixed, there is always another line
   error, so this is the original file)
 * <?php
 * // check the current post for the existence of a short code
    function has_shortcode(
   $shortcode = ”) {
 *  $post_to_check = get_post(get_the_ID());
 *  // false because we have to search through the post content first
    $found = 
   false;
 *  // if no short code was provided, return false
    if (!$shortcode) { return $found;}//
   check the post content for the short code if ( stripos($post_to_check->post_content,‘[‘.
   $shortcode) !== false ) { // we have found the short code $found = true; }
 *  // return our final results
    return $found;
 *  }
 * function hex2RGB($hexStr, $returnAsString = false, $seperator = ‘,’) {
    $hexStr
   = preg_replace(“/[^0-9A-Fa-f]/”, ”, $hexStr); // Gets a proper hex string $rgbArray
   = array(); if (strlen($hexStr) == 6) { //If a proper hex code, convert using 
   bitwise operation. No overhead… faster

Viewing 1 replies (of 1 total)

 *  [msens](https://wordpress.org/support/users/msens/)
 * (@msens)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/updated-and-getting-errors/#post-5249100)
 * I’m at your page now and there’s no error. Did you fix the issue?

Viewing 1 replies (of 1 total)

The topic ‘Updated and getting errors’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [upgrade problems](https://wordpress.org/support/topic-tag/upgrade-problems/)
 * [website down](https://wordpress.org/support/topic-tag/website-down/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 2 participants
 * Last reply from: [msens](https://wordpress.org/support/users/msens/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/updated-and-getting-errors/#post-5249100)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
