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
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;
Jsut to fix source of issue :
Which version of Projector are you using, and wich version of the Screen Customization plugin ?
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
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;
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