Hi, have you taken a look at the FAQ? You should define your path to wp-load using a constant.
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
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.
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
Can you paste the contents of the pardot-custom-wp-load.php file?
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
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://ww.wp.xz.cn/support/topic/existing-forms-not-found?replies=5
Let me know if that helps.
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 9 years, 8 months ago by
Cliff Seal.
-
This reply was modified 9 years, 8 months ago by
Cliff Seal.
To anyone who does try the version I linked above: the plugin files you need are in the “trunk” folder.