Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Multi-Page quizzes using wrong URL
(1 viewing) (1) Guest
"ARI Stream Quiz" WordPress plugin
Go to bottomPage: 1
TOPIC: Multi-Page quizzes using wrong URL
#63423
Multi-Page quizzes using wrong URL 5 Years, 11 Months ago Karma: 0
When we do a multi-page quiz using the reload after every question setting, the quiz is loading the wrong URL. Specifically, it is replacing the URL with _:8080

(I've turned reloading off but the first page of a sample is at boundingintocomics.com/2017/09/14/can-you-identify-all-50-of-these-batman-villains/ and the second page it tried to go to was _:8080/2017/09/14/can-you-identify-all-50-of-these-batman-villains/?asq_reload=MTozMzE2ODM2NS03M2M0LTQ2NWMtYTA3NC0yODBkZTZmM2QyM2I= )

I am not sure what method you are using to get the URL of the site but whatever that method is, it's being far too literal. Our nginx server IS running on port 8080 but it cannot be hit directly. All requests go through Cloudflare -> Load Balancer -> Varnish -> nginx (where nginx is working as a reverse proxy). So whatever method you are using is getting the final step rather than the outermost one, www.boundingintocomics.com...

Thanks

-A
The administrator has disabled public write access.
 
#63425
Re:Multi-Page quizzes using wrong URL 5 Years, 11 Months ago Karma: 748
Hello,

The plugin uses $_SERVER['SERVER_NAME'] server variable to detect root URL. Probably some extension/web server add-on use an incorrect value for the variable. Could you grant a temporary FTP access to <wordpress_plugins_directory>/ari-stream-quiz/ folder by email so we can investigate this problem?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#63427
Re:Multi-Page quizzes using wrong URL 5 Years, 11 Months ago Karma: 0
The issue is that we are using nginx as a reverse proxy for varnish. nginx is defining the server_name to be _ which is a catchall name and it listens on port 8080. I am researching now how to have it continue listening at that port but setting the server_port and server_name to be what we want them to be instead.

If there was an option to not use $_SERVER['SERVER_NAME'] but instead just assume all server urls start with / -- as a choice somewhere?

-A
The administrator has disabled public write access.
 
#63428
Re:Multi-Page quizzes using wrong URL 5 Years, 11 Months ago Karma: 748
Update the plugin to v. 1.5.28 please. It calculates root url based on get_site_url() call.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#63429
Re:Multi-Page quizzes using wrong URL 5 Years, 11 Months ago Karma: 0
Worked like a charm! Thank you!
The administrator has disabled public write access.
 
Go to topPage: 1