"Unable to generate a marketplace token" XAMPP WIn7 Install Concrete 5.5

Permalink
I am using XAMPP on Windows 7 Pro 64bit.

Hello - I am new to Concrete5 and web development, however, I did many searches and tried many options on this error. I can edit my site without issue. I've setup a virtual host by following these directions -http://sawmac.com/xampp/virtualhosts/... The virtual host work locally, but I still receive same error when attempting to connect to Community:

Connect to Community
Unable to generate a marketplace token. Please ensure that allow_url_fopen is turned on, or that cURL is enabled on your server. If these are both true, It's possible your site's IP address may be blacklisted for some reason on our server. Please ask your webhost what your site's outgoing cURL request IP address is, and email it to us at help@concrete5.org.

I've verified that both allow_url_fopen is turned on and that cURL is enabled via the php.ini file located in the xampp\php directory.

I've disabled both my antivirus and firewall, as well as added the virtual host to my hosts file.

 
acumark replied on at Permalink Reply
Sorry, not sure how to edit my original post - I want to show the added info in my httpd-vhosts file:
NameVirtualHost *:80
  <VirtualHost *>
    DocumentRoot "C:\Users\i7\Desktop\xampp\htdocs"
    ServerName localhost
  </VirtualHost>
  <VirtualHost *>
    DocumentRoot "C:\Users\i7\Desktop\myc5"
    ServerName myc5.local
  <Directory "C:\Users\i7\Desktop\myc5">
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>


Again, I can edit my site on localhost or the virtual host (myc5.local), but I receive error message when attempting to access the marketplace.

I really like Concrete 5.5 over the previous version, but I am unsure how to upgrade my lunarpages.com host to 5.5, so I'm learning it locally.
acumark replied on at Permalink Best Answer Reply
In hope of helping someone else, here is my resolution - many, many thanks to MarcusDalgren.

I don't know php, XAMPP or Apache, but I'm determined to learn. What follows is a cut/paste from email/pm's - the first paragraph is what I did to solve the issue:

The file you want to edit is called file.php and is located in concrete/helpers. The class is called FileHelper. I added curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false); on line 184. The preceding lines should look similar since they're also dealing with setting cURL options.

-------------------- Original Message --------------------
Hello, I came across your posting regarding xampp and windows 7. I have been dealing with this issue for many hours... and I am new to this. Where do you add the lines you recommended? If possible, please be specific as to which file.

Regards
-------------------- Original Message --------------------
Ok so the path Dashboard » Sitewide Settings » Debug doesn't exist in 5.5.0 so I hope the above info is the stuff you guys want. Anyways, I was having trouble with getting the marketplace token generated and after some googling I found where to look in the code.

I have both cURL and allow_url_fopen on and that's not the problem. The problem is that cURL apparently doesn't trust any https urls at all. I'm running on WAMP in Windows 7 so it might not be a problem on Linux.

Anyway, adding the line
curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false);
to FileHelper::getContents() fixes this and allows me to get the token but this might not be something you always want to set to false.
nerdess replied on at Permalink Reply
nerdess
thx, this is very helpful and solves the same issue i had :-)