Forum

[SOLVED] Error in t...
 
Notifications
Retirer tout

[SOLVED] Error in the customization of Projects

6 Posts
2 Utilisateurs
0 Reactions
1,513 Vu
(@cpt_jabberwock)
Posts: 56
Trusted Member
Début du sujet
 
[#8512]

Hello

On our second instance of Projeqtor, I had created some fields (using nothing but normal alphabet in the naming)

While checking if the problem on this one was the same as the other one (UserMain_oldxxxxx.php) I got another error in the Apache log

[Thu Sep 22 11:16:12.140651 2022] [:error] [pid 30087] [client 172.25.90.3:54764] PHP Fatal error:  Cannot redeclare Project::$_tab_2_2 in /var/www/html/projeqtor/model/custom/Project.php on line 111

After opening the screen customization of Project on that instance, the entire server crashed

Should I restart a backup and delete the Project.php from  "/var/www/html/projeqtor/model/custom/" ?

Can you help me on this issue ?

Thanks


 
Posté : 22/09/2022 1:20 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Just try and edit model/custom/Project.php
There should be 2 lines starting with 

public $_tab_2_2

Comment the one that should be unexpected.
The correct one should look like that

  public $_tab_2_2 = array('start', 'end', 'morning', 'afternoon');
  public $startAM;
  public $endAM;
  public $startPM;
  public $endPM;


 
Posté : 22/09/2022 1:31 pm
(@babynus)
Posts: 14952
Membre Admin
 

Jsut to fix source of issue :
Which version of Projector are you using, and wich version of the Screen Customization plugin ?


 
Posté : 22/09/2022 1:32 pm
(@cpt_jabberwock)
Posts: 56
Trusted Member
Début du sujet
 

I'm using 9.5.5 and the last version of customization now

I'm updating everything and trying to fix every error i get before trying the 10.0 on a test server

This is what I have on the lines

public $_tab_2_2=array('start','end','morning','afternoon');
public $_sec_Synchronisation;
public $_spe_isSynchronised;
public $_sec_ProjectDailyHours;
public $_tab_2_2;
public $startAM;
public $endAM;
public $startPM;
public $endPM;
public $idCatalogUO;

There is more above but this is the relevant " public $_tab_2_2" i could find


 
Posté : 22/09/2022 1:51 pm
(@babynus)
Posts: 14952
Membre Admin
 

The fix is to replace what you posted with

//public $_tab_2_2=array('start','end','morning','afternoon');
public $_sec_Synchronisation;
public $_spe_isSynchronised;
public $_sec_ProjectDailyHours;
public $_tab_2_2=array('start','end','morning','afternoon');
public $startAM;
public $endAM;
public $startPM;
public $endPM;
public $idCatalogUO;


 
Posté : 22/09/2022 2:03 pm
(@cpt_jabberwock)
Posts: 56
Trusted Member
Début du sujet
 

It worked

Screen customization still told me I had errors so i looked if I had custom fields but it is just some field I had hid for clarity

I just used the reset function at the top and it works perfectly after

I'll try to re-hide those fields now that it is functionnal again

Thank you


 
Posté : 22/09/2022 2:11 pm
Share:
Retour en haut