Cannot to go page ../mantis/bug_report_advanced_page.php

Get help from other users here.

Moderators: Developer, Contributor

karishma
Posts: 29
Joined: 08 Apr 2015, 07:39

Re: Cannot to go page ../mantis/bug_report_advanced_page.php

Post by karishma »

Can someone pls help me here?

I checked the bug_report.php and its referring to string_api.php in the same directory, however the string_api.php is placed in the core directory. Why is it configured so?

I did the following but still not able to submit the report
1) updated all references in bug_report.php to refer to core directory

$ grep core_path bug_report.php_backup
$t_core_path = config_get( 'core_path' );
require_once( $t_core_path.'string_api.php' );
require_once( $t_core_path.'file_api.php' );
require_once( $t_core_path.'bug_api.php' );
require_once( $t_core_path.'custom_field_api.php' );

2) moved the string_api.php into same directory as bug_report.php
karishma
Posts: 29
Joined: 08 Apr 2015, 07:39

Re: Cannot to go page ../mantis/bug_report_advanced_page.php

Post by karishma »

my older server running mantis was php 5.3.3
the current new server is php 5.5.9
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot to go page ../mantis/bug_report_advanced_page.php

Post by atrol »

Did you check your web server logs for errors and warnings?
Please use Search before posting and read the Manual
karishma
Posts: 29
Joined: 08 Apr 2015, 07:39

Re: Cannot to go page ../mantis/bug_report_advanced_page.php

Post by karishma »

from my last step/post, this is the error i saw:

Code: Select all

[Wed Jun 10 04:11:03.073282 2015] [:error] [pid 29465] [client 175.141.238.71:57466] PHP Warning:  ob_start(): function 'compress_handler' not found or invalid function name in /var/www/vhosts/support.smssb.com/mantis/core.php on line 18, referer: http://support.smssb.com/mantis/login_select_proj_page.php?ref=bug_report_advanced_page.php
[Wed Jun 10 04:11:03.073340 2015] [:error] [pid 29465] [client 175.141.238.71:57466] PHP Notice:  ob_start(): failed to create buffer in /var/www/vhosts/support.smssb.com/mantis/core.php on line 18, referer: http://support.smssb.com/mantis/login_select_proj_page.php?ref=bug_report_advanced_page.php
[Wed Jun 10 04:11:05.325206 2015] [:error] [pid 29465] [client 175.141.238.71:57466] PHP Warning:  ob_start(): function 'compress_handler' not found or invalid function name in /var/www/vhosts/support.smssb.com/mantis/core.php on line 18, referer: http://support.smssb.com/mantis/bug_report_advanced_page.php
[Wed Jun 10 04:11:05.325248 2015] [:error] [pid 29465] [client 175.141.238.71:57466] PHP Notice:  ob_start(): failed to create buffer in /var/www/vhosts/support.smssb.com/mantis/core.php on line 18, referer: http://support.smssb.com/mantis/bug_report_advanced_page.php
[Wed Jun 10 04:11:05.339390 2015] [:error] [pid 29465] [client 175.141.238.71:57466] PHP Fatal error:  Call to undefined function form_security_validate() in /var/www/vhosts/support.smssb.com/mantis/bug_report.php on line 36, referer: http://support.smssb.com/mantis/bug_report_advanced_page.php
[Wed Jun 10 04:16:32.758629 2015] [:error] [pid 29466] [client 175.141.238.71:57600] PHP Warning:  ob_start(): function 'compress_handler' not found or invalid function name in /var/www/vhosts/support.smssb.com/mantis/core.php on line 18, referer: http://support.smssb.com/mantis/login_select_proj_page.php?ref=bug_report_advanced_page.php
[Wed Jun 10 04:16:32.758690 2015] [:error] [pid 29466] [client 175.141.238.71:57600] PHP Notice:  ob_start(): failed to create buffer in /var/www/vhosts/support.smssb.com/mantis/core.php on line 18, referer: http://support.smssb.com/mantis/login_select_proj_page.php?ref=bug_report_advanced_page.php
Does the php version affect how the scripts perform? SHould i just run install of the latest version of mantis?
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot to go page ../mantis/bug_report_advanced_page.php

Post by atrol »

karishma wrote:my older server running mantis was php 5.3.3
the current new server is php 5.5.9
I am quite sure this causes at least some of your problems, maybe even all.
The Mantis version you use has been released in 2005.
You are a lucky man that it runs on PHP 5.3.3 which has been released in 2010.
You shouldn't expect that it runs on PHP 5.5.9 which has been released in 2014.

If you really want to use PHP 5.5 you would have to check the Mantis source for the incompatible changes mentioned at
http://php.net/manual/en/migration54.php
http://php.net/manual/en/migration55.php
Please use Search before posting and read the Manual
karishma
Posts: 29
Joined: 08 Apr 2015, 07:39

Re: Cannot to go page ../mantis/bug_report_advanced_page.php

Post by karishma »

Should I just get the appropriate version of mantis for my php 5.5.9? DOwngrading my php on the ubuntu 12 is going to be a challenge from what I read.
WHich is the latest version of mantis, and would it be able to inherit/import all my exisiting data into it?
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot to go page ../mantis/bug_report_advanced_page.php

Post by atrol »

karishma wrote:Should I just get the appropriate version of mantis for my php 5.5.9? DOwngrading my php on the ubuntu 12 is going to be a challenge from what I read.
I assume you mean Ubuntu 14.04 as 12.04 comes with PHP 5.3.10. Right?
Please use Search before posting and read the Manual
karishma
Posts: 29
Joined: 08 Apr 2015, 07:39

Re: Cannot to go page ../mantis/bug_report_advanced_page.php

Post by karishma »

You are right, mine is ubuntu14.

Ubuntu 12 would be ok but if we do an update it will go to ubuntu 14.

How about centos 5? would the php 5.1.x be compatible?
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot to go page ../mantis/bug_report_advanced_page.php

Post by atrol »

Hard to say what would be the best option for you.
For a long term solution (update to a newer MantisBT running on a newer PHP) you should check what I recommended.
atrol wrote: I recommend to download the whole original package and compare all files with your ones
http://sourceforge.net/projects/mantisb ... /1.0.0rc1/
For a short term solution, Centos 5 might work.
Please use Search before posting and read the Manual
karishma
Posts: 29
Joined: 08 Apr 2015, 07:39

Re: Cannot to go page ../mantis/bug_report_advanced_page.php

Post by karishma »

For this version /1.0.0rc1/, how do I know its compatibility with php?
I am thinking of centos 6.5 as a long term solution, its with php v5.3.3
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot to go page ../mantis/bug_report_advanced_page.php

Post by atrol »

karishma wrote:my older server running mantis was php 5.3.3
Thus, Centos with the same PHP version might also work.
But keep in mind that Mantis 1.0.0 RC1 has been released in July 2005 whereas PHP 5.3.3 five years later in 2010.
karishma wrote:For this version /1.0.0rc1/, how do I know its compatibility with php?
This is the original documentation of this version
https://github.com/mantisbt/mantisbt/bl ... oc/INSTALL
It tells: PHP 4.0.6 and higher

Still the same from my side:
atrol wrote:Hard to say what would be the best option for you.
For a long term solution (update to a newer MantisBT running on a newer PHP) you should check what I recommended.
atrol wrote: I recommend to download the whole original package and compare all files with your ones
http://sourceforge.net/projects/mantisb ... /1.0.0rc1/
For a short term solution, Centos 5 might work.
Please use Search before posting and read the Manual
karishma
Posts: 29
Joined: 08 Apr 2015, 07:39

Re: Cannot to go page ../mantis/bug_report_advanced_page.php

Post by karishma »

I dont really have the resources to completely upgrade to the latest mantis, so basically i am trying to make my current scripts work.

Ive got centos 6.5 with php 5.3.3 cli, BUT yet the page bug_report_advanced_page.php appears blank.

I keep getting this error when trying to run page bug_report_advanced_page.php

Code: Select all

[Wed Jun 17 01:23:15 2015] [error] [client 175.141.237.121] PHP Parse error:  syntax error, unexpected $end in /var/www/vhosts/support.smssb.com/mantis/bug_report_advanced_page.php on line 500
[Wed Jun 17 01:36:09 2015] [error] [client 175.141.237.121] PHP Parse error:  syntax error, unexpected $end in /var/www/vhosts/support.smssb.com/mantis/bug_report_advanced_page.php on line 500
I had used the exact scripts from my previous server. This is crazy.
karishma
Posts: 29
Joined: 08 Apr 2015, 07:39

Re: Cannot to go page ../mantis/bug_report_advanced_page.php

Post by karishma »

I found my solution, turns out it was the php configuration, the default in the new servers was short_open_tag = off, by setting it to on it works now.

Thanks atrol for your kind replies & suggestions.
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot to go page ../mantis/bug_report_advanced_page.php

Post by atrol »

Thanks for coming back and telling the solution.

Quite strange, as short open tags should be removed since 2002 in version 0.17.0, see https://www.mantisbt.org/bugs/view.php?id=983

Maybe you use short open tags in your own changed files (maybe in config_inc.php)

Nevertheless, great that it's running now.
Please use Search before posting and read the Manual
karishma
Posts: 29
Joined: 08 Apr 2015, 07:39

Re: Cannot to go page ../mantis/bug_report_advanced_page.php

Post by karishma »

I realise I am still having this error:
PHP Notice: ob_start(): failed to create buffer in /var/www/vhosts/support.smssb.com/mantis/core.php on line 18, referer: http://support.smssb.com/mantis/manage_ ... il_set.php
Due to this my mantis app is unable to send out any email alerts.

Can someone help?
Post Reply