Jump to content

Can't login PrestaShop Addons in back office


Recommended Posts

  • 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)
Link to comment
Share on other sites

  • 2 weeks later...
  • 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.

Link to comment
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.

Link to comment
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
Link to comment
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)
Link to comment
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 : /

Link to comment
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!

Link to comment
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. 

Link to comment
Share on other sites

  • 1 month later...
  • 8 months later...

i have a same problem.

when I try to enter the addon market it says I have the wrong credentials. but it is not possible, because I ask to ask to recover password and it will be given to the email that I put everything ok. and I can recover. then I put the new password and it's the same

someone to help me?

Link to comment
Share on other sites

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
×
×
  • Create New...