WordPress.org

Ready to get started?Download WordPress

Forums

MailPoet Newsletters
[resolved] [Plugin: Wysija Newsletters] Request error not JSON (36 posts)

  1. quantum_leap
    Member
    Posted 2 years ago #

    I try to drop in the WordPress post widget to create the newsletter and I get a Request error not JSON error. Then I click ok and try to find the article throught the search function, then I get the same error again

    Request error not JSON:
    <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/atv/planetmonkey.co.uk/wp-content/plugins/wysija-newsletters/controllers/ajax/campaigns.php:1) in <b>/home/atv/planetmonkey.co.uk/wp-content/plugins/wysija-newsletters/core/base.php</b> on line <b>2</b>
    {"result":{"posts":[],"msg":"There are no posts corresponding to that search.","result":false},"msgs":[]}

    What I do is I delete all content and try to import a wordpress post. It doesn't work. On the right side of the page, there is always a message displayed "Saving newsletter..." Themes are not working they are not selectable. What a pity, I quite liked how it all worked till I tried to compose a newsletter!

    http://wordpress.org/extend/plugins/wysija-newsletters/

  2. Ben
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Quantum_leap,

    In the latest release we launched yesterday, a naughty invisible character inserted himself in the beginning of /controllers/ajax/campaigns.php causing all those crashes on your end, sorry about that.

    To fix that, replace the file /controllers/ajax/campaigns.php with the one zipped in here:

    http://support.wysija.com/files/2011/12/controllers-ajax-campaigns.zip

    Let me know if you’re still having any issues.

    Ben

  3. stella68
    Member
    Posted 2 years ago #

    Hello
    When visitors wanted to suscribe, i have the same error
    Request error not JSON

    But after closing the window, a "Loading.." message is running without stopping.
    Nobody is receiving the confirmation link.

    Can you help me ?
    I'm using the latest update of WordPress.
    I try the tip you're describing (change the campaign file) but nothing works.

    Thanks a lot.

    PS : if you want to see it in action, it's on my website
    http://www.stellacuisine.com/

  4. Ben
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Stella,
    Indeed this bug is slightly different than the one described above.
    Can you try to install the latest package with the latest modifications we did in the last two weeks.
    This will not work for sure but this is worth a try.

    http://support.wysija.com/files/2012/01/wysija-newsletters1.zip

    If it still doesn't work please contact us through our support system, we may need access to your site for further correction.

    http://support.wysija.com

    Cheers,

    Ben

  5. stella68
    Member
    Posted 2 years ago #

    Hello
    Thanks for answering so fast.
    I have change the files on my FTP and the problem still the same.

    Where can I find the support system ?
    Thanks.

  6. stella68
    Member
    Posted 2 years ago #

    Double. I'm Sorry.

  7. Ben
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Stella,
    The support is at this address:

    http://support.wysija.com

    Ben

  8. Ben
    Member
    Plugin Author

    Posted 2 years ago #

    Stella came on our support website, and we finally solved her problem.
    The problem was linked to her site's configuration.

    In /wp-admin/options-general.php her WordPress address (URL) address was :
    http://stellacuisine.com/
    While her Site address (URL) address was :
    http://www.stellacuisine.com/

    Making the ajax call for registration from http://www.stellacuisine.com towards http://stellacuisine.com/wp-admin/admin-ajax.php is impossible as cross domains ajax call are impossible.

    The solution to that problem is to activate the little fix plugin available over here:
    http://support.wysija.com/files/2012/01/wysija-allow-subdomain-cross-ajax.zip
    Which make the cross subdomain ajax call possible.

    That's it folks :)

  9. stella68
    Member
    Posted 2 years ago #

    One more time thank you for your ability to react and the excellent quality of support website.

  10. stella68
    Member
    Posted 2 years ago #

    Hello, i'm sorry i have a new problem with IE users...

    Request Error JSON : undefined

    And nothing happens (just Loading) but users can't suscribe...
    Can you help me one more time please ?

    thanks

  11. Ben
    Member
    Plugin Author

    Posted 2 years ago #

    Stella,
    On which version of internet explorer does this error happens?

    Thanks,

    Ben

  12. Ben
    Member
    Plugin Author

    Posted 2 years ago #

    Well actually I tried with the latest version of IE and it doesn't work :/
    By the way in firefox I see this error :

    i is not a function
    [Stopper sur une erreur] 	
    
    ..."){var a=document.createElement("img");a.setAttribute("id","shr_oven");var b=f+"...

    http://dtym7iokkjlif.cloudfront.net/dough/1.0/recipe.js

    This could break everything in IE for instance.
    I'm not saying that this is the reason but it could be.
    Could you deactivate the plugin which uses this script? THis might just solve it.

    I tried on other server the registration form on IE and it works fine.

    Let me know,

    Ben

  13. stella68
    Member
    Posted 2 years ago #

    I have destactivate the Shareaholic plugin but it still doestn't work with IE (8&9)

  14. Ben
    Member
    Plugin Author

    Posted 2 years ago #

    Ok once again the problem was linked to this cross domain issue resolved few comments above.
    Finally there is no need for the cross domain plugin compatibility used in the previous solution.
    I included a fix for this kind of configuration straight into wysija.

    Hope this part will stay stable now :)

  15. DateTec
    Member
    Posted 2 years ago #

    I am also getting this error when trying to send a test email. It sent a test OK two days ago using php send option, I tried doing a test on gmail today and I get the error below.
    Now I have changed the settings back to the php send and the error still remains.
    I am running the same plugins that I did two days back so I cant think what is causing the error. Any suggestions?

    Request error not JSON:
    <b>Notice</b>: Trying to get property of non-object in <b>/home/datetec/public_html/wp-content/plugins/wysija-newsletters/helpers/toolbox.php</b> on line <b>2</b>

    <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/datetec/public_html/wp-content/plugins/wysija-newsletters/helpers/toolbox.php:2) in <b>/home/datetec/public_html/wp-content/plugins/wysija-newsletters/core/base.php</b> on line <b>165</b>
    {"result":{"result":false},"msgs":{"error":["An error occured. Show more details.<\/a>"],"xdetailed-errors":["Subscriber not found : <b><i><\/i><\/b>","Subscriber not found : <b><i><\/i><\/b>"]}}

  16. Ben
    Member
    Plugin Author

    Posted 2 years ago #

    Hi DateTec,

    This one is easy :)
    Actually during install of wysija we automatically synchronise the wordpress users into wysija subscribers the list is called WordPress Synched.
    Apparently you've deleted those users, or to be more accurate the user corresponding to the administrator account you're using to test the send mail.

    So to fix that it's easy you just need to add a new subscriber with the same email of your wordpress admin account or simply edit-save your wordpress account, it should re synchronise it.

    Try that and let me know.

    Cheers,

    Ben

  17. DateTec
    Member
    Posted 2 years ago #

    Hi Ben,
    Fixed thanks but see below.

    I tried to create a new user with the same email as the admin email and of course it told me it already existed....so I added that admin subscriber to the list WordPress Synched and still generated the send error.

    The way it works was your last suggestion. Remove the admin email address from WordPress Synched list which I added earlier. Go to Users admin account, edit profile and Update, admin then re-appears in WordPress Synched list and error is fixed.

    Once again thanks for your help.

    Alan

  18. Ben
    Member
    Plugin Author

    Posted 2 years ago #

    Ok Great :)

    I take good note of that we will improve that in one of the next version. It's an annoying bug that should not be.

    Thanks for the feedback :)

    Ben

  19. kakoz
    Member
    Posted 2 years ago #

    Hello,

    i keep getting the following when i try to send test email:
    Request error not JSON:
    Notice: Trying to get property of non-object in E:\inetpub\integralresolutions.org\wp-content\plugins\wysija-newsletters\helpers\toolbox.php on line 2
    {"result":{"result":false},"msgs":{"error":["An error occured. <а href=";">Show more details.<\/а>"],"xdetailed-errors":["Subscriber not found : <b><i><\/i><\/b>","Subscriber not found : <b><i><\/i><\/b>"]}}

    I tried all of the above mentioned solutions but no luck.
    Also when i tried to make a new newsletter and send, i got the following in a new blank page:
    Security failure during request.

    Any ideas what im doing wrong?

    Cheers.

  20. Ben
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Kakov,

    It doesn't look like you're doing anything wrong! It seems to me that we still have a couple of bugs on our applications.

    It looks like the tables were not created, yesterday I have corrected a bug regarding the tables creation requests. I just have committed it on svn few minutes ago.

    Check that all the tables from wysija are created:
    wysija_user_list
    wysija_user
    wysija_list
    wysija_campaign
    wysija_campaign_list
    wysija_email
    wysija_user_field
    wysija_queue
    wysija_user_history
    wysija_email_user_stat
    wysija_url
    wysija_email_user_url
    wysija_url_mail

    If they are not then :
    delete your version of wysija
    reinstall wysija with the latest version on repository
    run the following url to uninstall completely wysija:
    http://yourwebsite.com/wp-admin/admin.php?page=wysija_campaigns&wysija-uninstall=1
    and then run the following url to reinstall wysija:
    http://yourwebsite.com/wp-admin/admin.php?page=wysija_campaigns

    Now tell me how did it go.
    Are they still some missing tables?

    Cheers,

    Ben

  21. kakoz
    Member
    Posted 2 years ago #

    I deleted and reinstalled, deleted all subscribers etc remake and no luck.
    I`m guessing there is something to do with the host since its windows hosting or something with the permissions in the data base since i cant save a newsletter.
    Ill have to use another plug in since the hosting provider is kinda moronic and i dont have the time and strength to argue.

    Looking forward to the next project so i can use this awesome plugin.

    P.S.
    I installed it on my own server, where i actually have access to the data base and it worked just fine.

    Cheers.

  22. Ben
    Member
    Plugin Author

    Posted 2 years ago #

    Hey Kakoz,
    That's too bad!
    Hopefully we will correct that for this kind of host at some point.

    Thanks for the compliment. :)

    Ben

  23. dno555
    Member
    Posted 2 years ago #

    Hi I am having problems with subscription.
    When user enters email and then clicks subscribe .
    This error comes up .

    textStatus:error
    errorThrown:Not Found

    what can I do about it ?

    thanks

    Arm

  24. Ben
    Member
    Plugin Author

    Posted 2 years ago #

    Hi dno555,

    Could you replace the file wysija-newsletters/core/base.php with the one zipped here: http://support.wysija.com/files/2012/02/base2.zip
    this should do the trick.

    Try it ou and let me know.

    Cheers,

    Ben

  25. dno555
    Member
    Posted 2 years ago #

    HI ben ,
    It worked .
    Thank you very much

  26. Landiiv
    Member
    Posted 2 years ago #

    Hello,

    I use Gigawatt theme and if I put one picture in one article, I have one error when I want choose one article in wysija. I cant see the list of articles.

    error : Request error not JSON

    Sorry for my english. Thanks for your support.

  27. Ben
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Landiiv,

    Your problem seems different than the other users.
    Could you come to http://support.wysija.com and post a ticket so that we can take it from there.

    CHeers,

    Ben

  28. Landiiv
    Member
    Posted 2 years ago #

    Ok Ben I do that

    Thank you

  29. tmayombo
    Member
    Posted 2 years ago #

    Hi Ben

    I installed the plugin with admin1@anywhere.com set as admin email. and I wanted to use smpt server to send emails using the admin2@mydomainname.com set as admin email. when I tested the email I received the same error stated above:

    Request error not JSON:
    <b>Notice</b>: Trying to get property of non-object in <b>/home/datetec/public_html/wp-content/plugins/wysija-newsletters/helpers/toolbox.php</b> on line <b>2</b>

    <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/datetec/public_html/wp-content/plugins/wysija-newsletters/helpers/toolbox.php:2) in <b>/home/datetec/public_html/wp-content/plugins/wysija-newsletters/core/base.php</b> on line <b>165</b>
    {"result":{"result":false},"msgs":{"error":["An error occured. Show more details.<\/a>"],"xdetailed-errors":["Subscriber not found : <b><i><\/i><\/b>","Subscriber not found : <b><i><\/i><\/b>"]}}

    I think my problem was exactly similar to DateTec's problem and I believe I could have solved it if I saw it earlier. What I did instead, I went into my database and deleted all Wysija related tables thus when I tried to re install it the problem was still there. then, I tried to run the uninstall script to re install it as you suggested to kakoz, unfortunately I can't run the uninstall script because I am always asked to log in and when I log in only my dashboard's home page appears. any idea of what I should do? any help would be really appreciated. thanks

  30. Ben
    Member
    Plugin Author

    Posted 2 years ago #

    Hi tmayombo,

    Based on the errors you're getting I'm quite confident you're not using the latest version of wysija 1.1.3.
    Please update and try again this should fix that and a lot of other bugs :)

    In the new version of wysija we also have a reinstall button in Settings > Advanced .

    Try it out and let me know.

    Cheers,
    Ben

    p.s.:Try to always keep your software updated. It will save you time for sure !

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic