Support

Account

Forum Replies Created

  • Glad to see I’m not the only one with this problem. I mean, it sure is inconvenient, but I was getting worried that it was on my end and I couldn’t find out why.

    Hopefully this will get fixed soon as my website really requires this function in order to fully function properly.

  • I think I have this problem as well.

  • You do realize this support is completely free right? Also, I do agree with Elliot. It is rather difficult to troubleshoot frontend forms. I myself am having trouble with getting the form to go through if “http://” is in any of the fields, the form will reset (this is in ACF Pro though). They are currently working with me to solve this problem, and I really appreciate the way they handled themselves so far.

    In my opinion, this forum should be used as a last resort instead of a forum that babysits and spoonfeeds a user all the way through. There is proper documentation on how to get a form set up on this site already, and I don’t think Elliot is obligated to spoon feed the simple task of searching as well.

    This only requires basic knowledge of PHP and WordPress to get it working, but teaching that to a new user can be cumbersome. Elliot’s job is to help users fix bugs they might encounter, not teach users how to code.

    Before you go off on someone because they make a somewhat “aggressive” remark in your eyes, think about the situation first.

    As for the issue you guys might be having, are you guys on WordPress 4.0 by any chance? I noticed that in ACF Pro, the gallery and image fields wouldn’t show up if I was running WordPress 4.0. I simply downgraded and everything seemed to be working again, except the issue I have now with URLs.

  • So I tried submitting, waiting until it finished submitting, and then turned debug mode on. Here’s some of the errors I got:

    Notice: Undefined offset: 0 in /home/onestopmods/public_html/wp-content/themes/osmMK2/template-editpost.php on line 22
    
    Notice: Trying to get property of non-object in /home/onestopmods/public_html/wp-content/themes/osmMK2/template-editpost.php on line 22
    
    Notice: Undefined variable: specicat in /home/onestopmods/public_html/wp-content/themes/osmMK2/template-editpost.php on line 31

    and here’s the contents of my “editpost.php”:

    <?php 
    /*
    Template Name: Edit Post
    */
    acf_form_head();
    get_header();
    $postide = $_GET['id'];
    ?>
    
    <div id="main" class="full-width"><div class="wrap cf">
    
    	<div id="content" role="main">
    	
    		<?php while (have_posts()) : the_post(); ?>
    		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    			<h1 class="page-title">Editing Mod: <?php echo get_the_title("$postide"); ?></h1>
    
    			<div class="page-content rich-content">
    			<?php if ( current_user_can('edit_post', $postide) ) { ?>
    			<?php
    				$category = get_the_category("$postide"); 
    					$specat = $category[0]->cat_ID;
    						if($specat == 2){$namecat = Minecraft;}
    			?>
    			<?php 
    				if($specat == 2){$specicat = 1193;}
    			acf_form(array(
    				'post_id' => "$postide",
    				'post_title' => true,
    				'post_content' => true,
    				'field_groups' => array( 1185, 1191, $specicat, 1197, 1200),
    				'submit_value'	=> 'Submit Changes',
    				'return' => 'http://onestopmods.com/view-mods/',
    			)); 
    			?>
    			<?php } else { echo 'You do not have permission to access this page. If you are not logged in, try logging in. If you believe that this is an error, please <a href="http://onestopmods.com/contact/">Contact Us.</a>';} ?>
    			</div>
    		</div><!--end .hentry-->
    		<?php endwhile; ?>
    		
    	</div><!--end #content-->
    
    </div></div><!-- end #main -->
    
    <?php get_footer(); ?>

    It says the variables are undefined, but I’m getting them through a query string in the URL. Is this not possible to fix?

    I’d also like to note that these errors don’t show up when I initially load up the edit form. It only happens when I click submit and it redirects me to the same url, but with blank values everywhere. This error also doesn’t happen if there aren’t URLs (http://) in the fields.

  • Quick Update: I fixed the main_query problem (it was my theme), but the problem still persists. I can’t click the “submit” button when I’m debug mode.

  • Hmm… I enabled WP debug and I saw this appear repeatedly throughout the site:

    Notice: is_main_query was called incorrectly. In pre_get_posts, use the WP_Query::is_main_query() method, not the is_main_query() function. See http://codex.wordpress.org/Function_Reference/is_main_query. Please see Debugging in WordPress for more information. (This message was added in version 3.7.) in /home/onestopmods/public_html/wp-includes/functions.php on line 3245
    

    I deactivated the plugin, but I couldn’t access the site after that because of a get_field error (I assume this is normal if the plugin is deactivated) so I can’t really say if the plugin is the one causing this.

    Also, if debug mode is on and if the plugin is enabled, I’m unable to even click “submit”.

    Here’s the code for my “Add Post” page:

    <?php 
    /*
    Template Name: Add Post
    */
    acf_form_head();
    get_header(); 
    $specat = $_GET['cat'];
    	if($specat == 2){$namecat = Minecraft;}
    ?>
    
    <div id="main" class="full-width"><div class="wrap cf">
    
    	<div id="content" role="main">
    	
    		<?php while (have_posts()) : the_post(); ?>
    		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    			<h1 class="page-title">Submitting a Mod for: <?php echo $namecat; ?></h1>
    
    			<div class="page-content rich-content">
    			<?php 
    			if($specat == 2){$specicat = 1193;}
    			acf_form(array(
    					'post_title' => true,
    					'post_content' => true,
    					'post_id'		=> 'new_post',
    					'new_post'		=> array(
    						'post_title'  => 'New Post',
    						'post_type'		=> 'post',
    						'post_status'		=> 'pending',
    						'post_category'  => array("$specat") ,
    					),
    					'field_groups' => array( 1185, 1191, $specicat, 1197, 1200),
    					'submit_value'	=> 'Submit Your Mod',
    					'return' => 'http://onestopmods.com/view-mods/',
    				)); ?>
    			</div>
    		</div><!--end .hentry-->
    		<?php endwhile; ?>
    		
    	</div><!--end #content-->
    
    </div></div><!-- end #main -->
    
    <?php get_footer(); ?>
  • Update: Oh might I add, it DOES go through if I add the URL through the backend editor, however.

    Quick Update: It also doesn’t go through with the oEmbed field. It seems like it does this with all of the custom fields as long as there’s “http://&#8221; in the string. Is there any way around this?

    Another Update: Deactivated all plugins to see if it was a conflict, and still nothing.

    Again, this wasn’t a problem in ACF 4. I’m not really sure what to do at this point, and I don’t really want to downgrade to ACF 4 because I already paid for ACF 5 :/

Viewing 8 posts - 1 through 8 (of 8 total)