• Resolved Minh Nguyen

    (@ducminhn)


    I’m trying to use this plugin on our client’s WP site and it’s totally broken.
    First I got an error message when click on the Pardot button in the WYSIWYG:
    Fatal error: require(): Failed opening required '/home/wp-load.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/drivedev/public_html/dev.stat/drive/plugins/pardot/includes/pardot-wp-loader.php on line 58

    After I modified the the pardont-wp-loader.php file to have the correct path to wp-load.php file, I got another message said there’s no wp-config file on my site, which is completely wrong.

    Anyone has an idea what’s happening here?

    Thanks,
    Minh

    https://www.ads-software.com/plugins/pardot/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Cliff Seal

    (@cliffseal)

    Hi, have you taken a look at the FAQ? You should define your path to wp-load using a constant.

    Thread Starter Minh Nguyen

    (@ducminhn)

    Hi Cliff,

    Thanks for your quick response.

    Yes, I did create a custom file to set the path to wp-load.php file. That fixed the error but then I have this message and I couldn’t find where did you check for the wp-config.php file.

    Error Message

    Please help me on this.

    Thank you!
    Minh

    Plugin Author Cliff Seal

    (@cliffseal)

    I can’t see the error message, unfortunately.

    The plugin shouldn’t be checking for wp-config.php directly, so I’m not sure what you mean.

    Thread Starter Minh Nguyen

    (@ducminhn)

    Hi Cliff,

    Sorry for not having the image accessible. I think the issue is with the tinymce/pardot-forms-shortcode-popup.php file when it creates the body html for the popup window.
    This is the message I got when click on the Pardot button on the WYSIWYG:
    Message

    And this is the console log error
    Console Error

    Please let me know if you have any idea of what may be the reason. Like I mentioned above, the site has custom WP folder structure:
    /
    __core/
    ______wp-admin/
    ______wp-content/
    ______wp-includes/
    ______…
    __drive/
    ______themes/
    ______plugins/
    ______uploads/
    __wp-config.php
    __index.php

    Thank you so much for your help on this.

    Regards,
    Minh

    Plugin Author Cliff Seal

    (@cliffseal)

    Can you paste the contents of the pardot-custom-wp-load.php file?

    Thread Starter Minh Nguyen

    (@ducminhn)

    Ah ha,

    I found my mistake in the pardot-custom-wp-load.php file. I had a typo in the path to wp-load.php file on my server.
    This is the updated one:

    <?php
    define('PARDOT_WP_LOAD', '/home/drivedev/public_html/dev.project/core/wp-load.php');

    Now the popup window is having the right content except it couldn’t pull any form I have on my pardot account.
    Popup Window

    This is the screenshot of my Pardot forms list:
    Forms List

    This is the screenshot of my Pardot settings in WP back-end:
    Pardot Settings

    Sorry for my dump mistake above and please let me know if you can see anything wrong with my settings.

    Regards,
    Minh

    Plugin Author Cliff Seal

    (@cliffseal)

    Ack! It looks like my previous response didn’t come through.

    If you’re working with a relatively new Pardot account, you may be having a standing issue, outlined here: https://www.ads-software.com/support/topic/existing-forms-not-found?replies=5

    Let me know if that helps.

    Plugin Author Cliff Seal

    (@cliffseal)

    If you’re still having issues related to this, I would love for you to try version 1.4.1’s RC: https://github.com/Pardot/pardot-for-wordpress/archive/1.4.1.zip

    That’s being tested as a fix for the API version issue. You’ll simply need to choose version 4 in the Pardot settings area and re-authenticate. You may need to clear the plugin’s cache as well—do that by clicking the button on the settings page.

    • This reply was modified 8 years, 6 months ago by Cliff Seal.
    • This reply was modified 8 years, 6 months ago by Cliff Seal.
    Plugin Author Cliff Seal

    (@cliffseal)

    To anyone who does try the version I linked above: the plugin files you need are in the “trunk” folder.

    [removed]

    • This reply was modified 8 years, 3 months ago by Corey Worrell.
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Plugin doesn't work’ is closed to new replies.