Jump to content

WebService - cant login


Recommended Posts

Hi All,

 

I'm trying to login to webservice but can't get success...

 

I use this URL: www.[mysite.com]/api - I enter webservice Key to login field and click Ok, after that Authorization window appear again (there is no any error message)...

 

- prestashop 1.5.6.2

- SEO URL enabled

- htaccess is Ok

- mod_rewrite enabled at hosting (but I see warning message "URL rewriting (mod_rewrite) is not active on your server." in admin panel - I sent this to my hosting provider but it sure that mod_rewrite installed and enabled at server)

- site on subdomain (like public_html/site.com)

- checkbox CGI in webservice options didn't help

 

I have no ideas what can be wrong. I created 5 websites before and hadn't any problem with webservice .

Edited by p2rcoder (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

Hi all,

The only problem that I figure it out is that if you use firefox you'll get some problems, bc FF doesn't know to show XML tree

 

I have allmost the same problem but i try to access store.mysite.com/api not www.mysite.com/api.

Are there any difference between those two?

 

Any help will be great.

 

Thx

Link to comment
Share on other sites

I had moved my site to another server and it helped me. I don't know what the reasone.

 

PrestaShop use this function to check if mod_rewrite exists:

 

    public static function apacheModExists($name)
    {
        if (function_exists('apache_get_

modules'))
        {
            static $apache_module_list = null;

            if (!is_array($apache_module_list))
                $apache_module_list = apache_get_modules();

            // we need strpos (example, evasive can be evasive20)
            foreach ($apache_module_list as $module)
            {
                if (strpos($module, $name) !== false)
                    return true;
            }
        }
        return false;
    }

 

but at the first server "function_exists('apache_get_modules')" always returns False.
 

Link to comment
Share on other sites

×
×
  • Create New...