Warnings?

Support for Traq 3.x
Post Reply
User avatar
fadattf
Member
Posts: 16
Joined: Sat Jan 25, 2014 12:35 am

Warnings?

Post by fadattf » Fri Mar 07, 2014 9:58 pm

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.

Code: Select all

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 

User avatar
fadattf
Member
Posts: 16
Joined: Sat Jan 25, 2014 12:35 am

Re: Warnings?

Post by fadattf » Tue Mar 11, 2014 12:41 am

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)

Code: Select all

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
Last edited by fadattf on Tue Mar 11, 2014 12:43 am, edited 1 time in total.

User avatar
Jack
Advanced Member
Posts: 666
Joined: Fri Mar 27, 2009 7:37 pm
Location: Australia

Re: Warnings?

Post by Jack » Wed Mar 12, 2014 2:46 am

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?

User avatar
fadattf
Member
Posts: 16
Joined: Sat Jan 25, 2014 12:35 am

Re: Warnings?

Post by fadattf » Wed Mar 12, 2014 11: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, ...)
Last edited by fadattf on Wed Mar 12, 2014 11:41 pm, edited 1 time in total.

User avatar
fadattf
Member
Posts: 16
Joined: Sat Jan 25, 2014 12:35 am

Re: Warnings?

Post by fadattf » Thu Mar 13, 2014 1:08 am

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:
- [font=Consolas;font-size:9pt]traq_remember[/font]
[font=Consolas;font-size:9pt]- traq_u[/font]
[font=Consolas;font-size:9pt]- traq_h[/font]
[font=Consolas;font-size:9pt]- [/font][font=Consolas;font-size:9pt]hide_filters[/font]
[font=Consolas, Lucida Console, monospace;font-size:12px]- PHPSESSID[/font]
[font=Consolas, Lucida Console, monospace;font-size:12px]- _traq[/font]
<div> </div>
cookies working environment:
[font=Consolas, Lucida Console, monospace;font-size:12px]- PHPSESSID[/font]
[font=Consolas, Lucida Console, monospace;font-size:12px]- _traq[/font]

User avatar
shazbell
Member
Posts: 11
Joined: Thu Feb 13, 2014 6:04 am

Re: Warnings?

Post by shazbell » Thu Mar 27, 2014 7:41 am

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. 

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests