Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Can't log after upr...
 
Notifications
Clear all

Can't log after uprade to 3.2 version

15 Posts
2 Users
0 Reactions
11.4 K Views
(@kantabriko)
Posts: 14
Active Member
Topic starter
 
[#1007]

Hello,

I've just upgrade our Project'Or RIA installation to 3.2 version.

As usual, when I login as an administrator the application first upgrade the database to the same version (3.2).

After that I usually log in with a new click on OK button, but this time the wait gif is showed and I can't log in the application.

I tried to clean my browser cache, reboot server, use a different browser without success.

When I copy the 3.1.4. version in my Apache folder (override the 3.2 version), it works and I can log in.

There is no error in log file, about the database upgrade. What can I do?

Thanks in advance.


 
Posted : 11 Mar 2013 16H21
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

When I copy the 3.1.4. version in my Apache folder (override the 3.2 version), it works and I can log in.

If you can log on V3.1.4 without being an admin, and without connecting as admin first, this means your database is still tagged as V3.1.4.

Maybe you did not upgrade the correct database.

When upgrading, after first admin connection, you can check for the new version in the database, in table parameter, line with parameterCode='dbVersion'.
Another way to check you database is in V3.2.0 : you shoud see 2 new tables : audit and auditsummary.


 
Posted : 11 Mar 2013 16H37
(@kantabriko)
Posts: 14
Active Member
Topic starter
 

I have dbVersion parameter = V3.1.4. but it is with this value because after overriding the apache Folder of Project'Or RIA with a backup of 3.1.4. version, it changes this value the first time I log in.

I already have the audit and auditsummary tables.

I override the folder with the 3.2.0 version, again, the parameter changes to V3.2.0., and the upgrade of the database show several errors because some elements (tables, indexes and others) already exist.

And after that, I can't log in. I don`t know what to do...

Fortunately, with the backup of the 3.1.4. Apache folder, it runs...


 
Posted : 11 Mar 2013 18H30
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Can you check for a Javascript error in the console ?


 
Posted : 11 Mar 2013 18H40
(@kantabriko)
Posts: 14
Active Member
Topic starter
 

If you tell me how to... yes, it is our own server...


 
Posted : 11 Mar 2013 18H42
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Javascript console is in the client browser.

For instance :
on Chrome and FireFox [Shift]+[CTRL]+J opens the console


 
Posted : 11 Mar 2013 18H56
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Fortunately, with the backup of the 3.1.4. Apache folder, it runs...

As you get a backup of previous version, I imagine you didn't install new version over the previous releease.
How did you install the new version ?
Do you have a /tool/parametersLocation.php file ?
Is it pointing to the correct parameters.php file ?


 
Posted : 11 Mar 2013 18H58
(@kantabriko)
Posts: 14
Active Member
Topic starter
 

I have upgraded again to v3.2.0 (overriding the Apache folder with 3.2.0 version).

After that it shows 17 errors during database update, but I have checked the log file and it is due to already existing items.

When I try to log in with Javascrypt console open (in the server), it shows the next errors:

POST http://localhost/proyectos/tool/loginCheck.php?destinationWidth=350 500 (Internal Server Error) dojo.js:15
Error en xhrPost el retorno para loadContent('../tool/loginCheck.php?destinationWidth=350', 'loginResultDiv', 'loginForm', 'undefined') :
RequestError: Unable to load ../tool/loginCheck.php?destinationWidth=350 status: 500 projector.js:628
_481 {stack: "Error: Unable to load ../tool/loginCheck.php?desti…calhost/proyectos/external/dojo/dojo.js:15:80293)", message: "Unable to load ../tool/loginCheck.php?destinationWidth=350 status: 500", response: Object, name: "RequestError", constructor: function}
dojo.js:15


 
Posted : 11 Mar 2013 19H13
(@kantabriko)
Posts: 14
Active Member
Topic starter
 

Do you have a /tool/parametersLocation.php file ?

Yes, with the next text:

<?php
$parametersLocation = 'D:FicherosApacheProyectosConfigparameters.php';

Is it pointing to the correct parameters.php file ?

Yes, that file exits, with the next text:

?php
// =======================================================================================
// Automatically generated parameter file
// on 2013-01-19 00:11:55
// =======================================================================================
$paramDbType='mysql';
$paramDbHost='localhost';
$paramDbPort='3306';
$paramDbUser='xxxxx';
$paramDbPassword='zzzzz';
$paramDbName='IREProyectos';
$paramDbPrefix='';
$logFile='D:\FicherosApacheProyectos\Logs\projector_${date}.log';
$logLevel='3';
//======= END


 
Posted : 11 Mar 2013 19H28
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Hi,

Your php server cannot render ../tool/loginCheck.php
I just checked : it is provided in the zip file.

Can you check access rights to this file, and to all other files in the application directory.
The PHP server must have at least read rights to these files.


 
Posted : 11 Mar 2013 20H17
(@kantabriko)
Posts: 14
Active Member
Topic starter
 

The root directory of the App has full rights to these users/groups:

Administrators Group
Creator Owner
System
Everybody

So, I don't think is a problem of rights...

Another idea?


 
Posted : 11 Mar 2013 20H41
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Please check Apache logs.

Error 500 should be reported, maybe with more explanation.


 
Posted : 11 Mar 2013 21H51
(@kantabriko)
Posts: 14
Active Member
Topic starter
 

More information:

When I reach the login page, I get the next information in Apache Error.log:

[Mon Mar 11 20:33:54 2013] [error] [client 92.56.2.118] PHP Fatal error: Call to undefined function date_diff() in C:\AppServ\www\Proyectos\model\Audit.php on line 120, referer: http://XXXXXX/view/main.php

When I get a not succesful login, after that, each time I try to reach the login page I get "ERROR 500" error until I clean browser cache.


 
Posted : 11 Mar 2013 22H39
(@kantabriko)
Posts: 14
Active Member
Topic starter
 

The problem is in date_diff function.

If I change the next code:

$audit->lastAccess=date('Y-m-d H:i:s');
$duration=date_diff(date_create($audit->connection), date_create($audit->lastAccess)) ;
$audit->duration=$duration->format('%H%I%S');

To:

$audit->lastAccess=date('Y-m-d H:i:s');
$duration='01:01:01';

It Works!!!

So, the problem is with date_diff function. And I have read that it is not implemented until PHP Version 5.3 and I have installed PHP Version 5.2.17

Could give a fix to this error or must I upgrade my PHP version? I prefer not to do that because I have more php applications on this server...


 
Posted : 11 Mar 2013 23H11
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Hi,

I recorded the issue as Ticket #1018.
Will be deployed in next patch.

Thanks for reporting and analysis.


 
Posted : 12 Mar 2013 2H01
Share:

Scroll to Top