WordPress.org

Ready to get started?Download WordPress

Forums

WP Customer Reviews
[resolved] Paths not correct when using Thesis theme (27 posts)

  1. strongbox
    Member
    Posted 3 years ago #

    It looks like there is a path issue in the PHP coding function that creates the urls to include the javascript and css files. I manually called the JS and CSS and the form displays correctly, but will not submit reviews to the database.

    I think the issue is here:

    function getpluginurl() {
            return trailingslashit(plugins_url(basename(dirname(__FILE__))));
        }
    
    	function getplugindir() {
    		return trailingslashit(WP_PLUGIN_DIR.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)));
    	}

    Lines from 986 in the wp-customer-reviews/wp-customer-reviews.php file.

    I would really like to use this on our site http://www.rhombuspizza.com

    http://wordpress.org/extend/plugins/wp-customer-reviews/

  2. strongbox
    Member
    Posted 3 years ago #

    The page is:

    http://www.rhombuspizza.com/reviews

    Again, I have manually called the JS and the CSS, however I think what is happening is that maybe the file structure of Thesis might be causing issues with how the function is creating the urls to call scripts as well as the path to posting to the DB for info entered into the form.

    If I submit the form, no info is posted.

    Thanks!

  3. Aaron Queen
    Member
    Plugin Author

    Posted 3 years ago #

    Thank you for reporting this. We will check into it today.

  4. strongbox
    Member
    Posted 3 years ago #

    Sweet man! Thesis is used by many online marketers such as myself and this is worth a donation for sure.

  5. Aaron Queen
    Member
    Plugin Author

    Posted 3 years ago #

    For right now.. try putting the JS file "hack" into the header instead of the footer. This is what is causing the JS validation to go wacky. I'll check on the underlying problem though.

    Without the "hack", does it not include the JS/CSS at all? If it does include it, could you let me know which URL it is trying to include the plugins CSS/JS from so I can see what it may be?

    We have many users using Thesis without a problem, so I'm curious as to what it could be.

  6. strongbox
    Member
    Posted 3 years ago #

    I moved the JS into the head using a custom function hook into the Head. Still is not posting to the DB when a review is added. Without the hack I don't see the JS or the CSS at all.

    I have removed the hack for the CSS, and it is not being called into the theme at all now.

  7. strongbox
    Member
    Posted 3 years ago #

    I have embedded the CSS into the thesis custom.css file with an include.

  8. Aaron Queen
    Member
    Plugin Author

    Posted 3 years ago #

    2.0.9 is using a different method for:

    1. including scripts
    2. including styles
    3. submitting the post

    I know for a fact that submitting a post and including styles should work. We are trying to only include the script file on the page that it is needed, which is what is causing the problem. It appears that your version of Thesis (or another plugin) was not wanting to fire the action "get_header" , which is where 2.0.8 was trying to process all 3 of the above.

    2.0.9 should hit the servers in a few minutes. Please let me know if this fixes the issue, and you can remove your custom hooks/hacks and just let it work as it should!

    Thanks,
    Aaron

  9. Aaron Queen
    Member
    Plugin Author

    Posted 3 years ago #

    Did this solve the problem. Please try 2.1.1 and let me know if everything is perfect.

    Thanks.
    Aaron

  10. strongbox
    Member
    Posted 3 years ago #

    With 2.1.1 the javascript and the css are being called correctly now, when I try a review it says that I did not provide a correct web address even though I am not requiring one to be submitted, only allowing for the option of submitting one. The form will not submit unless I add a web address. If I remove it from the displayed fields it works correctly.

    Also, POST information is not being returned to the form when a user is given an error message. You might want to pass that info into a variable so that it can be posted back to the form so that users don't have to reenter everything again.

  11. Aaron Queen
    Member
    Plugin Author

    Posted 3 years ago #

    The POST information should be filled in via jQuery if it fails. I will check into both issues and put out another version with both working as they should.

    Good to hear CSS and JS are working correctly on 2.1.1 - The other issues may actually be non-theme related bugs, so thanks for reporting them.

  12. Aaron Queen
    Member
    Plugin Author

    Posted 3 years ago #

    2.1.2 is out and fixes the server-side email validation. Regarding the POST information.. it's not a big issue since the Javascript validation should correctly stop the from from being posted if all is working correctly. With the server-side validation fixed for email address, a legitimate user should never receive an error message.

    Also made a couple other fixes, additions.. Check the changelog.

  13. ksteele36
    Member
    Posted 3 years ago #

    Hi Guys, - (sry bompus) but I too am having the same issue as strongbox:

    "With 2.1.1 the javascript and the css are being called correctly now, when I try a review it says that I did not provide a correct web address even though I am not requiring one to be submitted, only allowing for the option of submitting one. The form will not submit unless I add a web address. If I remove it from the displayed fields it works correctly."

    This is a fresh install of Version 2.1.1 & I am running WP 3.1 on Apache server version unknown but I do remember having to update it recently (my best guess is version 5, but don't know if there was a subversion after that) The template/theme I am using is "Picture Perfect 1.3.3 by Wayne Connor"

    Hope this helps

  14. Aaron Queen
    Member
    Plugin Author

    Posted 3 years ago #

    Try 2.1.2 and see if the problem is solved.

  15. ksteele36
    Member
    Posted 3 years ago #

    Wow, nice response time there bompus! I did as strongbox recommended and removed the web address option and it tested / worked just fine. (http://studiobportraiture.com/studio-b-reviews/) I will follow up with you tomorrow as I have had about all I can take for this day... and have a bad case of programmers butt.
    I did want to inquire about or if I may, make a recommendation for some kind of spammers ip ban to be built in.... don't know what that involves but you guys have a nice module here and I would love to see this project float to the top.
    Thanks for doing what you do, "K"

  16. Aaron Queen
    Member
    Plugin Author

    Posted 3 years ago #

    We will add the IP ban to the todo list. There are actually quite a few automated spambot protections built in (some very clever methods actually), but of course those would not stop a true human spammer. I don't know what they would benefit from spamming anyway, since everything must be approved manually -- I guess they would still try.

  17. ksteele36
    Member
    Posted 3 years ago #

    That's awesome bompus! Definitely going to have to kick down some donation $ your way! Yes, its unfortunate but this is actually a website for someone very close to me that has child custody issues going on and the ex's new GF has been quite the stalker - not to get too much more personal but wanted to convey that there are circumstances that require some kind of protection against the little ppl. And, let me just say again how glad I am that I found this mod ~ nice job!

  18. strongbox
    Member
    Posted 3 years ago #

    This is the issue I am having with 2.1.3, when the form is submitted it goes to a "processing" page and then just hangs there, the review is posted to the database however.

    If I enable the website field and do not require it and then submit the form, I get the "processing" screen and it does not post the review to the database.

    If I enable the website field and require it the review is posted, the page still hangs on "processing" though.

  19. Johnp33
    Member
    Posted 3 years ago #

    My issue may be similar. I am using Thesis. WP Customer Reviews 2.1.3. Everything appears to work normally, except after you submit a review, I have no idea where it goes. It doesn't show up in my email or the WP admin panel?? Need help

  20. Aaron Queen
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks to both of you. 2.1.4 will be out in a few minutes and should fix the "processing..." issue.

    Also out with it are fixes for asking for website (not requiring) and the website being left blank. It was triggering validation before, even on the empty field. This has been corrected.

    Also fixed are some general Javascript cleanups and the method used for friendly forwarding to the correct URL using Javascript and then jumping down to where the status message is on the page.

    John -- your problem may be the same type of issue with the website being left blank.. it would never be posted to the database with the bug being present.

    Both of you please try 2.1.4 and let me know how it goes. I've had enough of these quick releases, so let's hope we have it nice and stable now for everyone.

  21. strongbox
    Member
    Posted 3 years ago #

    Hey my partner sent you a donation via paypal today, thank you for the hard work on this plugin, we are looking forward to the future development of it.

    Thanks!

  22. Aaron Queen
    Member
    Plugin Author

    Posted 3 years ago #

    You're welcome. Thank you for your support and feedback.

  23. Johnp33
    Member
    Posted 3 years ago #

    Things are working perfectly! Thanks for the help

  24. Johnp33
    Member
    Posted 3 years ago #

    I have now installed it on a new site and the submission doesn't show up anywhere.

    Thesis theme - URL (http://clevelandheightscomputerrepair.com) - Plugins (Akismet, Feedburner Circulation, W3 Total Cache)

    It is the newest version as well. Let me know

    Thanks

  25. Aaron Queen
    Member
    Plugin Author

    Posted 3 years ago #

    Hi John,

    2.1.5 was released at about the exact time you posted this message. The problem was with not using "pretty" permalinks (which your new site does not). The fixes also fixes pages that were being previewed, or in general accessed by ?page_id=<#> instead of the permalink.

    An oversight on my part, but 2.1.5 should fix it and I apologize for the problem, and actually allow the review to post to the correct URL.

    Let me know if 2.1.5 fixes the issue.

  26. rajubishnoi
    Member
    Posted 2 years ago #

    Hi,
    I have activated WP Customer Review plugin and added into my page by selecting "Enable WP Customer Reviews for this page" check box on the page.
    Now when open that page then css and js are not loading, also form submission not working.
    I had added css and js in header file then loaded but form submission was filed.
    So please help me to sort out this problem!
    Thanks

  27. rajubishnoi
    Member
    Posted 2 years ago #

    Hi, now it's working fine. Thanks!

    I have listing page under that all hotels, bar & restaurant list are displaying. So i want to put review for each hotels, bar & restaurant.
    How to do it. Please help me.
    Reply me ASAP.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic