redbaron76 / PongoCMS-Laravel-cms-bundle

a CMS bundle for Laravel 3.2 and Twitter Bootstrap 2.2.0
http://pongocms.com
Other
100 stars 32 forks source link

Google analytics stopped working when deployed on vps #5

Closed Edwin-Luijten closed 11 years ago

Edwin-Luijten commented 11 years ago

Google analytics stopped working when deployed on vps (it worked on local machine and no information has been changed):

Unhandled Exception Message:

GAPI: Failed to authenticate user. Error: "Request failed, fopen provides no further information"

Location:

D:\www_Staging\le-feu\bundles\cms\libraries\gapi.php on line 418

redbaron76 commented 11 years ago

That sounds strange. There is no relation between gapi library (php) and Analytics plugin (js). Did you set analytics account parameters correctly in 'settings.php'?

Edwin-Luijten commented 11 years ago

I double checked the account parameters they are both the same.

Edwin-Luijten commented 11 years ago

After further investigating, i have a 64bit server and it seems the curl module is not compatible and is not loaded. so it uses fopen instead (maybe there goes something wrong while using fopen).

I'm going to correct these problems with my sever installation, and hope it solves the problem.

Edwin-Luijten commented 11 years ago

It was indeed an incorrect version of the curl extension :). Problem is fixed. Link to correct version of 64bit curl extension: http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/