Could Not Connect Using SSL Forum

Discussion in '[bd] API' started by JMa, May 24, 2015.

  1. JMa

    JMa New Member

    I was able to connect from wordpress (http or https) to xenforo (http).

    However, no connection could be established from wordpress (http or https) to xenforo (https).

    Also if I logout from wordpress, I get this error.

    Code:
    {"errors":["You do not have permission to view this page or perform this action."],"system_info":{"visitor_id":2,"time":1432464808}}
     
  2. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    How do you setup your sites? Both WordPress and XenForo work on both http and https?
     
  3. JMa

    JMa New Member

    Initially, I have tried both wordpress and xenforo are on http. Everything was working fine except for the errors when I logout.

    As my sites are https, I have also tested the configuration on https. However, I get no response from xenforo.

    my setups are:
    Setup 1:
    http://mydomain1/blog
    http://mydomain1/forums

    This works flawlessly except for the logout error.

    Setup 2:
    https://mydomain2/blog
    https://mydomain2/forums

    Wordpress could not connect to xenforo.

    However, when I connected https://mydomain2/blog to http://mydomain1/forums it works.

    Any guidance is much appreciated.

    Thank you
     
  4. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    The logout issue is most likely caused by incorrect redirect uri in the XenForo client. Make sure it matches the WordPress site domain name (be careful if you run the site with both naked domain and www subdomain).

    Regarding https, which errors did you get? I meant when you said "WordPress could not connect to XenForo", that sounds a bit vague.
     
  5. JMa

    JMa New Member

    I will check the logout issue. Thanks

    In http, once I save the API values, I get the configuration settings below it. For https, nothing appears.
     
  6. xfrocks

    xfrocks XenForo rocks!
    Staff Member

  7. JMa

    JMa New Member

    I will give it a try and see what error it generates then give a feed back.

    Thanks
     
  8. JMa

    JMa New Member

    I do not get any debug errors at all after adding the WP_DEBUG and WP_DEBUG_LOG into the wp-config.

    The site is: https://smpex.com/blog & https://smpex.com/forums
    Access to site (both admins) are:
    username: admin
    password: demo123

    This is just a test site, feel free to have a look. I may have missed some configurations.

    By the way, the VPS server configuration is:
    Debian 7 x64
    RAM: 3 GB
    VestaCP (all defaults)

    Thanks a lot.
     
  9. JMa

    JMa New Member

    I was able to connect to API using SSL using only a plain server configuration. No control panel. I suspect that the Nginx reverse proxy is causing the problem.
     
  10. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    I'm unable to access https://smpex.com/blog and when I try to login, the password seems to be incorrect too...
     
  11. JMa

    JMa New Member

    I did not want to leave it open for a long time. :)
     
  12. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Sorry I was not able to check it earlier.
    Anyway, it seems you have resolved the issue with a different server?
     
  13. JMa

    JMa New Member

    Do not be sorry, we are all busy in our own time.

    Yes, I tried it on another server using a basic server configuration. It worked but still need to figure why. Also I still need to try the new versions you just released.
     
  14. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    I think it's more likely a curl / cert issue on your old server.
     
  15. JMa

    JMa New Member

    Thanks for the tip. That will give me a kick start.
     
    xfrocks likes this.
Loading...