akfdev
Forum Replies Created
-
Alin,
Thanks for that little update, i am implementing the filters as you’ve suggested. Thank you.
In an attempt to stop the SPAM getting hold of the UA- number i have used the unicode instead so that if bots scrape the page it’s more difficult to spot the UA- code..
google-analytics-dashboard-for-wp/front/tracking/code-universal.php
ga(‘\u0063\u0072\u0065\u0061\u0074\u0065’, ‘\u0055\u0041’+'<?php echo esc_html(str_replace(‘UA’,”,$profile[2])); ?>’,
and
window.google_analytics_uacct = “‘\u0055\u0041’+'<?php echo esc_html(str_replace(‘UA’,”,$profile[2])); ?>'”;
It’s a great plugin, analytics is being trashed by spammers getting the UA details, a slightly more convoluted way would be to use a javascript function to decrypt the UA code (just multiply the number by for example the time stamp in php and then divide it by that number in javascript) so it’s not actually visible on the page for people to scrape the function can reside on a different ga line also to make even harder for bots to scrape.
I have kept my current version simple, as i will have to re-implement the change each time you update the plugin.
I was hoping it would show up a missing library or something, sorry i am at a loss now on how to fix it. Hopefully somebody else will have some ideas on how to find out whats wrong. The two errors shown i would expect as it’s just been run from the command line.
What was the result from using it on the command line on the server ?
php installer.php
sorry no experience. but at least you can snapshot and try it repeatedly until you get it right.
@jeanp.
It works for me now perfectly, on my “WordPress on Ubuntu 13.10” Droplet, after adding the json. If it does not work though, just run it from the command line to see what else is missing using “php installer.php” (Not official but at least it showed me what my configuration was missing)Thanks @lifeinthegrid
Once the php5-json was installed, it worked perfectly.
It’s a fantastic plugin, pure and simple.
Just to say, that i have the same problem with a blank screen, with a droplet on digital ocean.
I had it working on a previous droplet fine, but this time i have tried to configure fastcgi & opcache has turned on.
(Duplicator) Installer.php with an archive.zip and database.sql.
I an trying to work out what happened, but at the moment i’m at a loss. Any ideas ?
The Ubuntu 13 php does not come with json installed.
sudo apt-get install php5-json
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
php5-json
0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
Need to get 19.8 kB of archives.
After this operation, 119 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ saucy/universe php5-json amd64 1.3.1+dfsg-2 [19.8 kB]
Fetched 19.8 kB in 0s (25.3 kB/s)
Selecting previously unselected package php5-json.
(Reading database … 94254 files and directories currently installed.)
Unpacking php5-json (from …/php5-json_1.3.1+dfsg-2_amd64.deb) …
Setting up php5-json (1.3.1+dfsg-2) …
php5_invoke: Enable module json for cli SAPI
php5_invoke: Enable module json for fpm SAPI
php5_invoke: Enable module json for apache2 SAPI
php5_invoke: Enable module json for cgi SAPI
root@the-great-divide:~# apachectl restartThen my installer.php worked.
I worked this out by starting in the ssh shell on the server
root@xxxxxxxx:~# php installer.php
hiiPHP Fatal error: Call to undefined function json_decode() in /root/installer.php on line 117