Forum Replies Created

Viewing 15 replies - 46 through 60 (of 115 total)
  • Thread Starter Bryan Willis

    (@codecandid)

    Hey Eliot I got to the bottom of it. I created a sandbox on WPENGINE and transferred over the .sql database file from the GoDaddy site. To my surprise it didn’t work there either and was bringing me to a 502 error page.

    So I took the same steps I did on GoDaddy and I disabled all the plugins, then the genesis child theme, then genesis, and all the plugins. Still no luck.

    The fatal error logged in the debug for exhausted memory occured on one of three lines below each time the page would load

    wp-includes/shortcodes.php on line 200
        wp-includes/shortcodes.php on line 227
        wp-includes/shortcodes.php on line 196

    In the backend, while updating the post, query monitor would report this

    Since this whole time I’d thought it was too long of a post I decided to see how many words I could actually have before it broke, but not even that helped! I only had a paragraph left and it still broke.

    Anyway, I switched to html mode and caught it right away. I wish I had done that earlier…

    This was the second sentence of the article:

    The study, published in Health Affairs scientific journal, found that 50 US hospitals were charging an average of 10 times the actual cost of providing care to their patients.

    But when looking at it in html mode, the comment you quoted me on about having no shortcodes caught my attention :

    <a href="http://content.healthaffairs.org/content/34/6/922.abstract[content.healthaffairs.org]">The study, published in <em>Health Affairs</em> scientific journal</a>, found that 50 US hospitals were charging an average of 10 times the actual cost of providing care to their patients.

    I’ll tell the owner of the website to try to find a different link to point to because I know urls aren’t suppose use square brackets. However, what do you think the odds are that we can fix this with custom content shortcode, since it allows shortcodes to be used in urls?

    Thread Starter Bryan Willis

    (@codecandid)

    Hey thanks for the reply Eliot. I backed up the site so I could try it on WPENGINE because I know it will work there.

    When this originally happened, Query Monitor was actually the first thing I checked, but since the page was “cashing out” before it was able load all the way, the Admin Bar and Query Monitor wouldn’t load.

    Anyway, WP-ENGINE lets you create sandbox servers, so I’m going to try and recreate there. I’ll let you know when I do and can give you login access if you want to check it out so you don’t have to waste your time trying to recreate. Just let me know.

    Thread Starter Bryan Willis

    (@codecandid)

    @ influencebydesign Doesn’t look like the author has been active for about a year now unfortunately…

    This plugin seemed to be in the same boat, but we managed to fix it if you want to get an idea of how to update. I would try myself, but don’t have time right now.

    Here is the starter-plugin for PRO v5 plugins.

    Also there is acf_form(); I’m not sure if this plugin uses that or not, or if it’s a new function, but it seems like a fairly easy way to display on the front end for those who can’t get this plugin working.

    Thread Starter Bryan Willis

    (@codecandid)

    Anything here? this is a great plugin. If you don’t want to update it anymore I’d be happy to help. I’ve made some other changes as well.

    Thread Starter Bryan Willis

    (@codecandid)

    Also getting these. Am using this with ubermenu. The warnings/notices only show up when I have this active though.

    Warning: Creating default object from empty value in /wp-admin/includes/nav-menu.php on line 772
    
    Notice: Undefined property: stdClass::$type in /wp-content/plugins/ubermenu/admin/custom.menu-item-types.php on line 8
    
    Notice: Undefined property: stdClass::$post_parent in /wp-includes/class-wp-walker.php on line 276 Notice: Undefined property: stdClass::$ID in /wp-includes/class-wp-walker.php on line 193 
    
    Notice: Undefined property: stdClass::$object_id in /wp-admin/includes/nav-menu.php on line 305 
    
    Notice: Undefined property: stdClass::$title in /wp-admin/includes/nav-menu.php on line 316 
    
    Notice: Undefined property: stdClass::$object in /wp-admin/includes/nav-menu.php on line 321 
    
    Notice: Undefined property: stdClass::$menu_item_parent in /wp-admin/includes/nav-menu.php on line 322
    
    Notice: Undefined property: stdClass::$type in /wp-admin/includes/nav-menu.php on line 323 
    
    Notice: Undefined property: stdClass::$title in /wp-admin/includes/nav-menu.php on line 324 
    
    Notice: Undefined property: stdClass::$url in /wp-admin/includes/nav-menu.php on line 325 
    
    Notice: Undefined property: stdClass::$target in /wp-admin/includes/nav-menu.php on line 326 
    
    Notice: Undefined property: stdClass::$attr_title in /wp-admin/includes/nav-menu.php on line 327 
    
    Notice: Undefined property: stdClass::$classes in /wp-admin/includes/nav-menu.php on line 328 
    
    Warning: implode(): Invalid arguments passed in /wp-admin/includes/nav-menu.php on line 328 
    
    Notice: Undefined property: stdClass::$xfn in /wp-admin/includes/nav-menu.php on line 329

    Looks like you gave it 5 starts 🙂

    reinaaldocfiho is correct here. skomfare2 you missed your prefix .md- on line 21 of modal-popup-component.css on the .container class. Change that and the relating html to md-container or something else and it should fix the issue. Libraries like Bootstrap (which I’m assuming reinaaldocfiho is using) use .container for their site layout. I actually came across this a year or two ago when testing out the original javascript version of this plugin. To be honest I’m actually surprised this hadn’t happened to anyone else. Hopefully this helps!

    See This CSS Github Link For Exactly Where Issue Occurs

    I’m not even sure if you’re using container in you’re html/php so you might be save deleting this completely.

    Link to the HTML container class in the original plugin

    Hope this helps! Should fix the crappy rating you currently have 🙂

    Forum: Plugins
    In reply to: [DNUI] has_cap issue
    Thread Starter Bryan Willis

    (@codecandid)

    Makes sense. Yea it was hard to find, I couldn’t find has cap anywhere in your plugin. Thanks for the update!

    Thread Starter Bryan Willis

    (@codecandid)

    Thanks doublesharp, I’ll check it out!

    Thread Starter Bryan Willis

    (@codecandid)

    Sorry for the late reply here! Thanks for all your support. Great plugin.

    Thread Starter Bryan Willis

    (@codecandid)

    Hey thanks Oil. I hadn’t had time to check, but if you weren’t having an issue I have a hunch the issue had to do with code from this plugin as it’s the only non default dashboard widget I have enabled and it has a media uploader:

    http://plugins.svn.ww.wp.xz.cn/media-upload-admin-widget/trunk/media-upload-admin-widget.php

    Thread Starter Bryan Willis

    (@codecandid)

    Yea thanks Profenter. Thats what I was trying to do. You should note in the plugin description that it doesn’t work with shared hosts because I’m sure there are a ton of people who wouldn’t realize that and will probably ignorantly give it a bad rating.

    I’ll try on ec2 when I get a chance and let you know.

    I highly doubt this….

    After looking at the code I don’t see anything here wordpress or native php that has capability of deleting files. Maybe I’m overlooking something though. When you make claims like this try to be more descriptive in your situation. In case it was actually this plugin, it isn’t a very helpful support thread by just saying “deleted all my files”. When did this occur? On install? What other plugins were active? There are lots of things you could offer for people to help your situation as well as their own by preventing this from happening to other people.

    Regardless hopefully you do backups of your files!

    Here is the entire v5 version. These all appear to be core ACF functions. Pretty basic. You sure you didn’t make some sort of mistake??

    class acf_field_sidebar_selector extends acf_field {
    	function __construct() {
    		$this->name = 'sidebar_selector';
    		$this->label = __( 'Sidebar Selector', 'acf' );
    		$this->category = __( "Choice",'acf' );
    		$this->defaults = array(
    			'allow_null' => '1',
    			'default_value' => ''
    		);
        	parent::__construct();
    	}
    	function render_field_settings( $field ) {
    		acf_render_field_setting( $field, array(
    			'label'			=> __('Allow Null?','acf-sidebar_selector'),
    			'type'			=> 'radio',
    			'name'			=> 'allow_null',
    			'layout'  =>  'horizontal',
    			'choices' =>  array(
    				'1' => __('Yes', 'acf'),
    				'0' => __('No', 'acf'),
    			)
    		));
    		acf_render_field_setting( $field, array(
    			'label'			=> __('Default Value','acf-sidebar_selector'),
    			'type'			=> 'text',
    			'name'			=> 'default_value',
    		));
    	}
    
    	function render_field( $field ) {
    		?>
    		<div>
    			<select name='<?php echo $field['name'] ?>'>
    				<?php if ( !empty( $field['allow_null'] ) ) : ?>
    					<option value=''><?php _e( 'Select a Sidebar', 'acf' ) ?></option>
    				<?php endif ?>
    				<?php
    					foreach( $wp_registered_sidebars as $sidebar ) :
    					$selected = ( ( $field['value'] == $sidebar['id'] ) || ( empty( $field['value'] ) && $sidebar['id'] == $field['default_value'] ) ) ? 'selected="selected"' : '';
    				?>
    					<option <?php echo $selected ?> value='<?php echo $sidebar['id'] ?>'><?php echo $sidebar['name'] ?></option>
    				<?php endforeach; ?>
    			</select>
    		</div>
    		<?php
    	}
    }
    new acf_field_sidebar_selector();
    Thread Starter Bryan Willis

    (@codecandid)

    No problem.

    For anyone else if you don’t know where the file goes just copy the js from the code and use it to replace the code in snitch.js (which is in the plugins root folder).

Viewing 15 replies - 46 through 60 (of 115 total)