WordPress.org

Ready to get started?Download WordPress

Forums

TAB SLIDE
[resolved] gravity form within tab slide (11 posts)

  1. do7d
    Member
    Posted 1 year ago #

    There was mention of this issue by someone else a short while ago, but they never found a solution or did and never posted the outcome.

    First off, the form displays exactly the way I wanted it to within the tab. For configuration, I set tab slide to "widgeted" area, used gf form widget within it. However, when you click submit on the form, it takes the visitor to a blank page that is only displaying the form itself, and doesn't even submit the form.

    When I used the inspector to examine what the issue was, the action is calling to "wp-content/plugins/tab-slide/templates/Widget.php" which I'm assuming is causing the error.

    The tab is displayed on every page, here's a LINK.

    Thanks in advance!

    http://wordpress.org/extend/plugins/tab-slide/

  2. do7d
    Member
    Posted 1 year ago #

    follow-up:

    i have changed the mode from widget to post, and only get the shortcode displayed.
    i changed from post to custom, created a template (using the gravity forms php) and it errors out entirely.

    i have been communicating with gravity forms, and we tried these workarounds. please advise!

  3. zoranc
    Member
    Plugin Author

    Posted 1 year ago #

    hey do7d,

    I was working out this issue in a new update. It was related to the way that the plugin was loading in the content.

    Now you can use the widget area template and add in your form widget to the tab slide widget area like you did initially and it should work

    let me know if you're still experiencing problems

  4. do7d
    Member
    Posted 1 year ago #

    Warning: include_once(/wp-content/plugins/tab-slide/templates/Widget.php) [function.include-once]: failed to open stream: No such file or directory in /xxx/xxx/public_html/jgg/ken/wp-content/plugins/tab-slide/tab-slide.php on line 359

    Warning: include_once() [function.include]: Failed opening '/wp-content/plugins/tab-slide/templates/Widget.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /xxx/xxx/public_html/jgg/ken/wp-content/plugins/tab-slide/tab-slide.php on line 359

    i even completely uninstalled, then re-installed.

  5. zoranc
    Member
    Plugin Author

    Posted 1 year ago #

    For some reason there is a trailing slash in your include path ...I've pushed out a new update to make sure that the path used is pretreated for this case scenarios

    let me know if 1.33 works for you

  6. do7d
    Member
    Posted 1 year ago #

    im sorry, but it still is not working. i do greatly appreciate your help with this, tho. is there anything you can recommend to possibly help troubleshoot on my end?

  7. zoranc
    Member
    Plugin Author

    Posted 1 year ago #

    What is the error you are getting this time around?

  8. do7d
    Member
    Posted 1 year ago #

    this displays within the tab:

    Warning: include_once(/wp-content/plugins/tab-slide/templates/Widget.php) [function.include-once]: failed to open stream: No such file or directory in /xxx/xxx/public_html/jgg/ken/wp-content/plugins/tab-slide/tab-slide.php on line 359

    Warning: include_once() [function.include]: Failed opening '/wp-content/plugins/tab-slide/templates/Widget.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /xxx/xxx/public_html/jgg/ken/wp-content/plugins/tab-slide/tab-slide.php on line 359

  9. zoranc
    Member
    Plugin Author

    Posted 1 year ago #

    for some reason your configuration is still trying to include the url starting with a slash...

    edit your tab-slide.php - scroll all the way to the end and replace this bit of code:

    function get_contents() {
    	global $window_url;
    	?><div id="tab_slide_include" style="display: none"><?php
    	if (substr($window_url, 0, 7) == 'http://') {
    		include_once(substr($window_url, strlen(get_site_url())));
    	} else {
    		include_once(rtrim($window_url, "/"));
    	}
    	?></div><?php
        //ob_get_clean();
    }

    with this

    function get_contents() {
    	?><div id="tab_slide_include" style="display: none">
            <?php include_once("wp-content/plugins/tab-slide/templates/Widget.php"); ?></div><?php
    }

    this should set the include url to this widget url without the slash..(btw you won't be able to switch to a different template via the dashboard tab slide settings while this code is in place)

    let me know if this worked as it will give me an idea on how to troubleshoot this further

  10. zoranc
    Member
    Plugin Author

    Posted 1 year ago #

    ok scratch that last message....I just updated the plugin with the proper code so remove it completely and then reinstall and it should do the trick this time around

  11. do7d
    Member
    Posted 1 year ago #

    Sir, I commend you and your efforts. It works perfectly. Thank you for your work, I am updating my post on gravity forms' forum as well about this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic