View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] Error in the customization of Projects - ProjeQtOr
 
 

[SOLVED] Error in the customization of Projects

More
22 Sep 2022 11:20 #1 by Cpt_Jabberwock
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

Please Log in or Create an account to join the conversation.

More
22 Sep 2022 11:31 #2 by babynus
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;


Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
22 Sep 2022 11:32 #3 by babynus
Jsut to fix source of issue :
Which version of Projector are you using, and wich version of the Screen Customization plugin ?

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
22 Sep 2022 11:51 #4 by Cpt_Jabberwock
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

Please Log in or Create an account to join the conversation.

More
22 Sep 2022 12:03 #5 by babynus
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;


Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
22 Sep 2022 12:11 #6 by Cpt_Jabberwock
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

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.038 seconds

Cookies settings

×

Functional Cookies

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

Please login to see yours activities!

Other cookies

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