OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Login Problems

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Postby asmecher » Thu Jun 14, 2007 1:14 pm

Hi weslei,

If your site is live and self-registration is enabled, please PM me a URL and I'll do some testing.

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby weslei » Thu Jun 14, 2007 2:23 pm

Hello people, the following code piece from asmecher fixed the problem in my case...

Here goes his message, so it maybe can help somebody else:


It looks like your system's CGI setup is causing OJS to incorrectly detect the cookie path; you may need to replace the getBasePath function in classes/core/Request.inc.php with a hard-coded constant, e.g.:Code:


Code: Select all
        function getBasePath() {
                static $basePath;

                if (!isset($basePath)) {
                        $basePath = '/sistema'; // Here is the hard-coded part
                        if ($basePath == '/' || $basePath == '\\') {
                                $basePath = '';
                        }
                        HookRegistry::call('Request::getBasePath', array(&$basePath));
                }

                return $basePath;
        }



Thank you all people!!!

:)
Weslei
weslei
 
Posts: 8
Joined: Thu Jun 14, 2007 7:59 am

Postby asmecher » Thu Jun 28, 2007 2:09 pm

Hi Weslei,

Are you still having trouble with this? If you're willing, PM me a URL for your server along with some temporary access information and I'll investigate myself.

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby weslei » Fri Jun 29, 2007 5:51 am

Hello, no... The code you gave me (I did show it in the previous post) fixed the problem... Thank you again.

Weslei
weslei
 
Posts: 8
Joined: Thu Jun 14, 2007 7:59 am

Previous

Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest