Jump to content

Can't login PrestaShop Addons in back office


Recommended Posts

Hi,

 

When I try to login to PrestaShop Addons in Modules section of my back office, I receive the error:

"PrestaShop was unable to log in to Addons. Please check your credentials and your Internet connection."

I can connect normaly in https://addons.prestashop.com, but from back office I receive that error.

How can I solve these?

Regards,

Alexandre.

post-990016-0-02014100-1429240579_thumb.jpg

  • Like 1

Share this post


Link to post
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Hi

 

I have the same problem

We got our site install from our web hosting

After some hours to load up our products, we found out how to change the Slider in module, but cant sign in to Addons from Back-office

So our website show their module, unfinished construction, their link, tel, etc. 

 

We try a new with Cloud, and got the same problem

Can any one show me how it work?

Thanks

Edited by Philipw (see edit history)

Share this post


Link to post
Share on other sites

  • 2 weeks later...

Me Too!!!! Same Problem

 

Prestashop 1.6.0.14

Información del servidor Linux #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64

Versión del servidor web Apache

Versión de PHP 5.3.27

Límite de memoria 128M

Tiempo Máximo de ejecución 30

Share this post


Link to post
Share on other sites

  • 2 months later...
  • 2 months later...
  • 2 weeks later...
  • 4 months later...
  • 3 weeks later...
  • 1 month later...

According to my host provider, it has something to do with the htaccess, we have it fixed but not without a fight with the hosting folks.

This was their answer
There was an .htaccess file in your ~/public_html directory referencing a php.ini file.
This file contained an incompatible or obsolete PHP directive which caused the log-in to fail. I have renamed the php.ini

I have multiple installs that this fixed. Seems that some hosts may be sharing the same files is why all my new test installs would still not work. Or they were giving me an answer they thought would make me happy.

 

If you are still having these issues, it is Definitely with your host provider. 
I have another host provider I made a fresh install on and all addon logins worked great with no problems.
Don't let your host provider tell you it is not their fault.
But, I could be wrong??

Consider my issues fixed on this thread.

Share this post


Link to post
Share on other sites

  • 6 months later...
  • 3 months later...
  • 1 month later...

Hello,

 

I solved by making following changes.

 

in js/admin.js

 

find

function bindAddonsButtons()
{
    // Method to log on PrestaShop Addons WebServices
    $('#addons_login_button').click(function()

In that i just replace the code for AJAX success. There is something wrong in that.

 

Below is the change which i applied:

success : function(data){
                    var datastring = (data.trim());
                    if (datastring == "OK")
                    {
                        $('#addons_loading').html('');
                        $('#addons_login_div').fadeOut();
                        window.location.href = currentIndex + '&token=' + token + '&conf=32';
                    }
                    else {
                        $('#addons_loading').html('<br><div class="alert alert-danger">'+errorLogin+'</div>');
                    }
                }

Hope its work.

Share this post


Link to post
Share on other sites

  • 3 weeks later...

After several hours, I have finally found the issue and solved it for 1.6.x.x versions.

 

(You must be sure that curl and allow_url_fopen are activated)

 

In /classes/tools.php, the function file_get_contents never uses curl because one of the conditions is wrong.

 

In the function file_get_contents, you must replace the following line :

 if (in_array(ini_get('allow_url_fopen'), array('On', 'on', '1')) || !preg_match('/^https?:\/\//', $url)) {

by this line :

 if (!preg_match('/^https?:\/\//', $url)) {

You should now be able to connect to prestashop addons.

Edited by ynocquet (see edit history)
  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

  • 1 month later...

After several hours, I have finally found the issue and solved it for 1.6.x.x versions.

 

(You must be sure that curl and allow_url_fopen are activated)

 

In /classes/tools.php, the function file_get_contents never uses curl because one of the conditions is wrong.

 

In the function file_get_contents, you must replace the following line :

 if (in_array(ini_get('allow_url_fopen'), array('On', 'on', '1')) || !preg_match('/^https?:\/\//', $url)) {

by this line :

 if (!preg_match('/^https?:\/\//', $url)) {

You should now be able to connect to prestashop addons.

 

Thanks this worked for me PS 1.6.1.6

Edited by 5haun (see edit history)

Share this post


Link to post
Share on other sites

  • 5 weeks later...

Hello,

 

I solved by making following changes.

 

in js/admin.js

 

find

function bindAddonsButtons()
{
    // Method to log on PrestaShop Addons WebServices
    $('#addons_login_button').click(function()

In that i just replace the code for AJAX success. There is something wrong in that.

 

Below is the change which i applied:

success : function(data){
                    var datastring = (data.trim());
                    if (datastring == "OK")
                    {
                        $('#addons_loading').html('');
                        $('#addons_login_div').fadeOut();
                        window.location.href = currentIndex + '&token=' + token + '&conf=32';
                    }
                    else {
                        $('#addons_loading').html('<br><div class="alert alert-danger">'+errorLogin+'</div>');
                    }
                }

Hope its work.

 

I tried this on 1.7.1.1 and is not working, I still fail logging to addons : /

Share this post


Link to post
Share on other sites

  • 3 months later...
  • 2 months later...
On 1/4/2017 at 11:29 AM, ynocquet said:

After several hours, I have finally found the issue and solved it for 1.6.x.x versions.

 

(You must be sure that curl and allow_url_fopen are activated)

 

In /classes/tools.php, the function file_get_contents never uses curl because one of the conditions is wrong.

 

In the function file_get_contents, you must replace the following line :

 if (in_array(ini_get('allow_url_fopen'), array('On', 'on', '1')) || !preg_match('/^https?:\/\//', $url)) {

by this line :

 if (!preg_match('/^https?:\/\//', $url)) {

You should now be able to connect to prestashop addons.

Thanks, You Are a Goooddd! Regards from México City!

Share this post


Link to post
Share on other sites

  • 1 year later...
  • 1 year later...
  • 9 months later...
On 4/29/2016 at 2:39 PM, vaporz said:

According to my host provider, it has something to do with the htaccess, we have it fixed but not without a fight with the hosting folks.

This was their answer
There was an .htaccess file in your ~/public_html directory referencing a php.ini file.
This file contained an incompatible or obsolete PHP directive which caused the log-in to fail. I have renamed the php.ini

I have multiple installs that this fixed. Seems that some hosts may be sharing the same files is why all my new test installs would still not work. Or they were giving me an answer they thought would make me happy.

 

If you are still having these issues, it is Definitely with your host provider. 
I have another host provider I made a fresh install on and all addon logins worked great with no problems.
Don't let your host provider tell you it is not their fault.
But, I could be wrong??

Consider my issues fixed on this thread.

Hi, what do you mean when you say you renamed php.ini? I read it so often but have no idea what it means. Thank you for your answer. 

Share this post


Link to post
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More