Tips and Tricks HQ Support Portal › Forums › WP Photo Seller › WP Photo Seller – Staging Server Issues
- This topic has 13 replies, 3 voices, and was last updated 10 years, 4 months ago by
ruddygood.
-
AuthorPosts
-
October 2, 2014 at 8:48 am #11548
ruddygood
MemberHi there, I am moving hosts for one of my clients – and as such need to get the site running on a staging server.
However when I moved hosts I encountered a number of issues:
1) Gallerys are showing on pages – however none of the ‘purchase’ functionality or lightboxes work
2) There are some ‘rogue’ items showing on the page -Loading…Qty Description Price Totals
3) Thought I might be wise deactivating the license and reactivating – but I get a message saying – License key is invalid! Reached Maximum Allowable Domains!
WordPress Version 4.0
Photo Seller Version 1.8.0
Live site here:
[http://www.jonathanmmcgee.com/fieldsports-shoot-day-photography/cliffe/]
Staging site (with issues) here:
[http://79.170.44.155/jonathanmmcgee.com/fieldsports-shoot-day-photography/cliffe/]
PHP Info:
[http://79.170.44.155/jonathanmmcgee.com/phpinfo.php] (will be removed after 48hrs)
Thanks in advance
October 3, 2014 at 12:06 am #65781Peter
MemberI can see immediately that you have a javascript error on the staging site:
Failed to load resource: the server responded with a status of 404 (Not Found) [http://79.170.44.155/jonathanmmcgee.com?wps_load_dynamic_js=js-gallery-buy]
You will need to sort that out first.
October 3, 2014 at 7:50 am #65782ruddygood
MemberThanks for the response – but how do you suggest I sort that out?
Surely it is packaged with the plugin?
October 3, 2014 at 8:51 am #65783ruddygood
MemberI am presuming there is an issue with the path set by WPS_URL, buit not sure where that data is saved.
October 3, 2014 at 10:00 am #65784Peter
MemberIn this case we are using the core WP function “site_url()”, ie,
there is a line in a file called gallery-buy.php as follows:
<script type="text/javascript" src="<?php echo site_url();?>?wps_load_dynamic_js=js-gallery-buy"></script>
So for some reason your current setup is causing issues with this.
October 3, 2014 at 11:11 am #65785ruddygood
MemberThanks Peter, from what I can see the site_url() is being returned as expected.
Live site:
<script type=”text/javascript” src=”http://www.jonathanmmcgee.com?wps_load_dynamic_js=js-gallery-buy”></script>
Staging site:
<script type=”text/javascript” src=”http://79.170.44.155/jonathanmmcgee.com?wps_load_dynamic_js=js-gallery-buy”></script>
October 3, 2014 at 11:22 pm #65786Peter
MemberYour staging server setup is the issue and not the plugin.
If you try and paste the following in your browser you will get a “not found” error:
[http://79.170.44.155/jonathanmmcgee.com]
This explains why the photo seller plugin was not able to process the query parameter in the URL related to the javascript file.
October 4, 2014 at 10:45 am #65787ruddygood
MemberHi Peter
You only get a 404 if you omit the end slash at the end of the domain.
Won’t parse:
http://79.170.44.155/jonathanmmcgee.com
Will parse:
http://79.170.44.155/jonathanmmcgee.com/
WordPress always removes the end slash from the site url even if set in the db.
With the current host there is no way of amending the the staging url in order to resolve without the end /
So I am guessing that the script won’t ever load
October 4, 2014 at 10:49 am #65788ruddygood
MemberIs there anyway for testing purposes of hardcoding the link?
October 4, 2014 at 1:10 pm #65789wzp
ModeratorWordPress always removes the end slash from the site url even if set in the db.
Under WordPress –> Settings –> Permalinks you can add the trailing slash to your permalink format.
October 4, 2014 at 1:55 pm #65790ruddygood
MemberHi thanks WZP,
That doesn’t solve the issue of the script loading though – as the script uses site_url()
See snippet:
<script type=”text/javascript” src=”<?php echo site_url();?>?wps_load_dynamic_js=js-gallery-buy”></script>
There is no way that I can change the server configuration so that http://79.170.44.155/jonathanmmcgee.com resolves, it always has to be http://79.170.44.155/jonathanmmcgee.com/
October 4, 2014 at 2:50 pm #65791wzp
ModeratorDo you have control over the .htaccess file at the [http://79.170.44.155] level?
October 4, 2014 at 3:51 pm #65792ruddygood
MemberUnfortunately not – I have asked the server company if they could amend it, but due to the server setup this is not possible.
The only thing I can think of is hard coding the path instead – which is straight forward in the first instance above:
<script type=”text/javascript” src=”<?php echo site_url();?>?wps_load_dynamic_js=js-gallery-buy”></script>
But it then requires this to be done in all further associated files.
October 4, 2014 at 4:01 pm #65793ruddygood
MemberOK so I now have it working – but it’s taking a little reworking of the code…I have hard coded some paths and amended some of the paths to get it functioning.
-
AuthorPosts
- You must be logged in to reply to this topic.