Jump to content


Click here to lend your support to: Traq and make a donation at pledgie.com !
Photo

Warnings?


  • Please log in to reply
5 replies to this topic

#1 fadattf

fadattf

    Member

  • Members
  • PipPip
  • 16 posts

Posted 07 March 2014 - 10:58 AM

I don't want to post that as a bug because chances are high that I have a problem with my own setup.

 

When I update a ticket I get the following warnings and the ticket doesn't get updated.

PHP Notice: Undefined variable: ticket_history in E:\wwwroot\traq\vendor\traq\views\default\tickets\view.phtml on line 130
PHP Warning: Invalid argument supplied for foreach() in E:\wwwroot\traq\vendor\traq\views\default\tickets\view.phtml on line 130I

With warnings disabled it seems to work :)

So do I have a problem with my installation or is that a traq problem?

 

btw: I also had the problems while updating and on some other functions like filtering.

 

Traq Version :3.4.3 



#2 fadattf

fadattf

    Member

  • Members
  • PipPip
  • 16 posts

Posted 10 March 2014 - 01:41 PM

realy strange.. it happens also when I want to create a new milestone.

But only in one environment - the other one is working perfectly fine.

 

Putting an @ before the variables helps (but of course can't be the solution)

PHP Notice:  Undefined index: status in E:\wwwroot\traq\vendor\traq\models\milestone.php on line 166
PHP Notice:  Undefined property: traq\models\Milestone::$original_status in E:\wwwroot\traq\vendor\avalon\database\model.php on line 402
PHP Notice:  Undefined index: status in E:\wwwroot\traq\vendor\traq\models\milestone.php on line 172


#3 Jack

Jack

    Project Founder

  • Administrators
  • 673 posts
  • LocationAustralia

Posted 11 March 2014 - 03:46 PM

I'm unable to reproduce any of these issues, my PHP development environment's error_reporting is set to "E_ALL | E_STRICT".

 

If you don't mind, could you answer the following questions to try and help figure this out?

  • Is this a clean install or have you upgraded? If you upgraded, what was the last version that didn't produce these notices and warnings.
  • Have you modified the database at all? for example, creating or editing tickets in the database, skipping Traq completely.
  • What, if any, plugins do you have installed?

  • What version of PHP and MySQL are you running?



#4 fadattf

fadattf

    Member

  • Members
  • PipPip
  • 16 posts

Posted 12 March 2014 - 12:41 PM

Hi Jack!

 

I have updated from 2.4.x as far as I remember.

In the database I only updated the custom fields (with a php script) so that the are migrated (no changes in the structure).

 

I've the system running on two machines:

a) test environment - here everything works fine

b ) live environment - here we have the problems

 

I have to say that the update also only worked on a and not on b.

 

The source code on a & b is identical - also the database. It's realy weird.

I now switched the a-database and b-database to be sure that the database isn't the problem.

So the problem must be the server or the php environment.

 

Both servers are running PHP version 5.4.6 (same php ini, same extensions, ...)



#5 fadattf

fadattf

    Member

  • Members
  • PipPip
  • 16 posts

Posted 12 March 2014 - 02:08 PM

the only thing that "fixed" the problem was setting the error_reporting to "E_ALL & ~E_DEPRECATED".

Nothing else worked.

 

One difference I found out was that in the non working environment more cookies have been set:

 

cookies non working environment:

traq_remember

- traq_u

- traq_h

hide_filters

- PHPSESSID

- _traq

 

cookies working environment:

- PHPSESSID

- _traq



#6 shazbell

shazbell

    Member

  • Members
  • PipPip
  • 11 posts

Posted 26 March 2014 - 08:41 PM

I think I am facing the same issue too while adding filters in the /tickets page. I am running version 3.4.3. In my case, I had to set error_reporting to E_ERROR. 

The setup works fine in my local machine. But the error keeps showing up on the server where i have the application running. 




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users