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.

[SOLVED] Error in t...
 
Notifications
Clear all

[SOLVED] Error in the customization of Projects

6 Posts
2 Users
0 Reactions
1,538 Views
(@cpt_jabberwock)
Posts: 56
Active Member
Topic starter
 
[#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


 
Posted : 22 Sep 2022 13H20
babynus
(@babynus)
Posts: 14966
Main Contributor 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;


 
Posted : 22 Sep 2022 13H31
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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


 
Posted : 22 Sep 2022 13H32
(@cpt_jabberwock)
Posts: 56
Active Member
Topic starter
 

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


 
Posted : 22 Sep 2022 13H51
babynus
(@babynus)
Posts: 14966
Main Contributor 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;


 
Posted : 22 Sep 2022 14H03
(@cpt_jabberwock)
Posts: 56
Active Member
Topic starter
 

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


 
Posted : 22 Sep 2022 14H11
Share:

Scroll to Top