View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Update V9.3.2 To V10.0.3 in PHP8.2 - ProjeQtOr

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

Update V9.3.2 To V10.0.3 in PHP8.2

More
29 Sep 2022 10:18 #1 by Francky95
Hello,

I have 2 problems with the update process,

#1 : Access to a static variable not initialized is depreciated.

log :
2022-09-29 09:28:58.170 ===== TRACE ===== =====================================
2022-09-29 09:28:58.170 ===== TRACE =====
2022-09-29 09:28:58.170 ===== TRACE ===== VERSION V10.0.3
2022-09-29 09:28:58.170 ===== TRACE =====
2022-09-29 09:28:58.171 ===== TRACE =====  0 lines updated into table "menu".
2022-09-29 09:28:58.173 ===== TRACE =====  3 lines updated into table "accessright".
2022-09-29 09:28:58.177 ===== TRACE =====  1 lines updated into table "accessright".
2022-09-29 09:28:58.179 ===== TRACE =====  2 lines updated into table "accessright".
2022-09-29 09:28:58.181 ===== TRACE =====  6 lines deleted from table "accessright".
2022-09-29 09:28:58.182 ===== TRACE =====  0 lines updated into table "menu".
2022-09-29 09:28:58.182 ===== TRACE =====  0 lines updated into table "menu".
2022-09-29 09:28:58.184 ===== TRACE =====  1 lines updated into table "accessright".
2022-09-29 09:28:58.185 ===== TRACE =====  6 lines deleted from table "accessright".
2022-09-29 09:28:58.185 ===== TRACE =====
2022-09-29 09:28:58.185 ===== TRACE ===== DATABASE UPDATED
2022-09-29 09:28:58.185 ===== TRACE =====  WITH NO ERROR
2022-09-29 09:28:58.185 ===== TRACE =====
2022-09-29 09:28:58.194 ***** ERROR ***** [V9.3.2] ERROR *****
2022-09-29 09:28:58.194 ***** ERROR ***** [V9.3.2] on file '....../tool/projeqtor.php' at line (4840)
2022-09-29 09:28:58.194 ***** ERROR ***** [V9.3.2] cause = Creation of dynamic property User::$_isRetreivedFromSession is deprecated

My fix in Model/UserMain

class UserMain extends SqlElement {

  //FIX PHP8.2
  public $_isRetreivedFromSession
;

  // extends SqlElement, so has $id
  public $_sec_Description;

#2 Next ERROR : I think, it's in relation with an incomplete process (See logs)




 
Attachments:

Please Connexion or Create an account to join the conversation.

More
29 Sep 2022 11:20 #2 by Francky95
I found the solution . We must add #[AllowDynamicProperties] before an object (kinsta.com/blog/php-8-2/#deprecate-dynam...properties-attribute)

#[AllowDynamicProperties]

abstract class SqlElement {
// List of fields that will be exposed in general user interface
public $id;
// every SqlElement have an id !!!
public static $_evaluationString = '###EVAL###';

public static $_evaluationStringForbiddenKeywords = array(
'paramDb',
.................

Please Connexion or Create an account to join the conversation.

More
29 Sep 2022 14:00 #3 by babynus
It is what we have begun to do on V10.1
V10.0 will never be compatible with PHP 8.2 (a projeqtor version may not be compatible with PHP version that was deployed after...)

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.043 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.