Wordpress site "looses" $_GET

I have two WordPress sites : one is misbehaving.
When I run the site locally on my dev machine with a hosts entry pointing the domain to the local version my payment gateway module works perfectly.
When I run the same site from its server (using the same domain name) - the $_GET array is empty - despite there being parameters in the URL.
Everything for the two installations is identical
This script works as expected - $_GET shows parameters

<pre>
<?php
print_r($_GET);
?>
</pre>

Open in new window


If I place the following code into the site
file_put_contents("getlog.log", print_r($_GET, true), FILE_APPEND);

Open in new window

On my local machine - it shows values
On hosting server - empty

Any known issues where some settings could result in WordPress not seeing the $_GET?
LVL 63
Julian HansenAsked:
Who is Participating?
 
Julian HansenConnect With a Mentor Author Commented:
Found the problem - ISP INI file did not allow for long requests
SuHoShin was the culprit - max_value_length was not long enough to accommodate the return
suhosin.simulation = On 
suhosin.post.max_vars = 4096 
suhosin.request.max_vars = 4096 
suhosin.get.max_value_length = 4096
suhosin.session.encrypt = Off 

Open in new window

0
 
Ray PaseurCommented:
0
 
Julian HansenAuthor Commented:
Both sites use URL rewriting - .htaccess redirects everything to index.php

Just the one site (local) sees the $_GET the other looses it.

The only difference between the two is the server the site is hosted on.

Going to compare a phpinfo dump of the two sites to see if there is anything obvious there but thought I would put it out there in case someone has come across this one before.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
Dave BaldwinFixer of ProblemsCommented:
For 'file_put_contents', you do have to have write permissions.  http://php.net/manual/en/function.file-put-contents.php
1
 
Julian HansenAuthor Commented:
Yes - the file is being written just has
Array 
(
)

Open in new window

Whereas on the other site I get
Array
(
    [crypt] => @5fa02dd9f9018c3648c68daf12bb786a09741a6c9fd13f885c49dd7899412b3b832c4ff312edd0b96320bbc281ae64725517fca99c8b72a349f362ef381052e1870fcdf33cc6584a5ddc4c7c56d3005e205a1698308ad3eddb7d88490264ec66a30ca7c815b9f84611148e19eaaf0d373e3651182ffcfffcbda8ae147883b93712b3e59fb87b61ae265c7a8badf8f354ea01bcbca8a8f1e4fe5ef782a69494dd22d90e0af012e24123541b9a523dbb4b33a5576cb903d869bb600e04a1a88cbcba3b193dc511e809cca4fc15bbe1239496918938d0fc6b0a60b121216ae3665275b5daf5d66aedd565fd07b7d3affd0086ffa70bd755e8da9c48d3166e4248ea23b56544d3424c81d768645d2049be95a5a59514629a5641e3c88fca95a95531fc6760add04b7ecc83a7c19c92840cc46ac8f76601338b86781a2d6798bf3c0214b4b9c5e1eafe654974d8adb5346105c4e8d921278428b3a1d5210ce0add6ca08fe665f9618a417e395b4e3040dab2bd491624e4c4669a6b1819ac7851b90874888ebcdf1718d77ac1d0c09d883d24f
)

Open in new window

URL in both cases is identical - same domain same parameters - crypt value changes but that is because it is a different transaction.
0
 
Julian HansenAuthor Commented:
Just moved the site to another hosting provider (1and1) - problem went away - so it looks like Crazy Domains is doing something odd on their side.

1and1 is where we are trying to move from
CrazyDomains was selected as an option

Any good recommendations for a hosting provider for a primarily UK based online business?
0
 
Ray PaseurConnect With a Mentor Commented:
The standard recommendations would be those that support the PHP community, some of these offer hosting.
http://php.net/thanks.php

I've had good experiences with ChiHost, LiquidWeb, and HostGator.  I've had sub-optimal experiences with GoDaddy and 1and1.  Never heard of CrazyDomains before, but the name alone is enough to discourage.

BlueHost is well thought-of, but I have no direct experience with them.  Same with DreamHost.

Any cloud service is worth considering.  AWS might be a good answer.
0
 
Julian HansenAuthor Commented:
Thanks Ray,

A smaller list to deal with - I will pass it on as I am not in the driving seat on this one.
0
 
Julian HansenAuthor Commented:
Meant to give Ray points but seems it assigned him 0 - need to change that
0
 
Julian HansenAuthor Commented:
The actual solution to the problem was my post.

However, having resolved to move to a different ISP Ray provided good advice on where to go.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.