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.comApparently with the upgrade came a change to the php file located:
/hermes/waloraweb001/b401/moo.millirr/home/wp-content/themes/options/framework/functions/common.phpI 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 24EXTREME 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
- The topic ‘Updated and getting errors’ is closed to new replies.