Forum

[SOLVED] Cannot cre...
 
Notifications
Retirer tout

[SOLVED] Cannot create Activity after updated version 5.0.1

24 Posts
2 Utilisateurs
0 Reactions
15.6 {numéro}K Vu
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

I see in the log that you reverted to V4.5.6 then got back to V5.0.1.
All went OK, errors displayed are normal : as update to V5.0.1 was already done, some database update (such as adding a column in a table) fail (column already exists).

But then I see no error.
Traces are correct.
I see

drawTableFromObject(obj, included=, parentReadOnly=)

But result page (as you displayed) is not complete...
I verified, there is not condition to exit this function without displaying things...
So you should have an error somewhere.
Issue is that it is not logged in ProjeQtOr log.

Maybe you can check Apache log file. It can give hint.

Than, if you can change the code, please add a debug line after line 439 in /view/objectDetail.php, this way :

  foreach ( $obj as $col => $val ) {
    debugLog(" => $col");
    if ($detailWidth) {

and of course try again and post log file.
Thanks.


 
Posté : 1 Juil PM 20:077
 mate
(@matekhong)
Posts: 26
Active Member
Début du sujet
 

I attached Log file as your request
Please refer attached file


 
Posté : 2 Juil AM 07:077
(@babynus)
Posts: 14952
Membre Admin
 

:dry:
Really strange.
Logs shows as if on _sec_description exist in the object description...

Please try attached file : unzip it in /view folder, to overwrite existing objectDetail.php.
I add debug lines to help solve issue.
Please test again and post result log here.

Thanks.


 
Posté : 3 Juil PM 18:077
 mate
(@matekhong)
Posts: 26
Active Member
Début du sujet
 

I attached log as your request


 
Posté : 4 Juil PM 18:077
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Log is really too shot.
Someting happens in those lines

debugLog("      => cpt=$cpt");
      // Determine colSpan
      $colSpan=null;
      $colSpanSection='_'.lcfirst($section).'_colSpan';
      if ( property_exists($obj,$colSpanSection) ) {
        $colSpan=$obj->$colSpanSection;
      }
      $widthPct=setWidthPct($displayWidth, $print, $printWidth,$obj,$colSpan);
      if ($col=='_sec_void') {  
        if ($prevSection) {
          echo '';
          if (!$print) {
            echo '
'; } else { echo '
'; } } if (!$print) { echo '
'; } else { echo '
 
'; } } else { debugLog(" => before call startTitlePane(classObj=$classObj, section=$section, , widthPct=$widthPct, print=$print, outMode=$outMode, prevSection=$prevSection, nbCol=$nbCol, cpt=$cpt)");

As I cannot guess which line is source of issue, please try again this new objectDetail.php file (in zip) with debugLog on almost every line.
Like previously,overwrite existing with it, test again and post log file here.
Hope it will give us some hints.


 
Posté : 4 Juil PM 19:077
 mate
(@matekhong)
Posts: 26
Active Member
Début du sujet
 

Please see attached log file


 
Posté : 5 Juil AM 00:077
(@babynus)
Posts: 14952
Membre Admin
 

Found it !!!

issue is on lcfirst().
it seems this command appeared onlu on PHP 5.3
So I guess you're using PHP 5.2.

I'll propose a patch !


 
Posté : 5 Juil AM 04:077
(@babynus)
Posts: 14952
Membre Admin
 

Attached is a patch that fixes the issue.
(at least I hope it fixes the issue) 😉


 
Posté : 5 Juil AM 04:077
 mate
(@matekhong)
Posts: 26
Active Member
Début du sujet
 

It's work!
You made my day, Thank you for your hard work to handle with the solution.


 
Posté : 5 Juil AM 05:077
Page 2 / 2
Share:
Retour en haut