Mantis

Problem with plugininstallaion 0.3.0

Posted by artgroup 
Problem with plugininstallaion 0.3.0
August 27, 2008 11:48PM
Hi all,
i tried to install pluginmanager 0.3.0 on Mantis 120a2 without success.
step 1)I extracted all files on tar.gz to mantis root dir.
step 2)open the plugins_page.php to finish the installation

Here I got all green lights but with this warning massage on bottom menu area:
SYSTEM WARNING: Invalid argument supplied for foreach()

and the only available link is : [ Return to Plugin Manager ]

if I click the link above nothign happen, I go to the same page.
Also on the main manu no link or other option are available.

What is wrong?

I'm running mantis under WinXP SP2 with XAMPP 1.6.

Finally: I could I extract the .pkg archive that I could download? there is a 0.3.1 version but I don't know how to use it.

thanks

Cris by ArtGroup

Mantis: 1.1.2
PHP: 5.2.5
SQL: MySQL 5.0.51a
OS: XP SP2
Re: Problem with plugininstallaion 0.3.0
August 28, 2008 08:31AM
Take a look in your SQL database to see if there are tables with name like mantis_plugins_pm_*_table. If yes, take a look at the mantis_plugins_pm_list_table content.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Problem with plugininstallaion 0.3.0
August 31, 2008 01:57PM
Yes Vincent,
i have these tables on my SQL:
- mantis_plugins_pm_dependencies_table: empty table
- mantis_plugins_pm_function_overwrite_table: empty table
- mantis_plugins_pm_list_table: one entry only with these value
-- plugin: pluginmanager
-- installed: 1

I have also this table: mantis_plugin_table
with this entry:
-- basename: MantisCoreFormatting
-- enabled: 1
-- protected: 0
-- priority: 3

What have i to do to install the pluginmanager so that I could easily install th other plugins?
It seems that Mantis 120a2 already supports plugins... but trying to install plugins withou pluginmanager od not work.

thanks for your help

Cris by ArtGroup

Mantis: 1.1.2
PHP: 5.2.5
SQL: MySQL 5.0.51a
OS: XP SP2
Re: Problem with plugininstallaion 0.3.0
August 31, 2008 02:05PM
Ok, make sure that the core.php file contains these lines:
Language: PHP
((( ) . DIRECTORY_SEPARATOR . &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;plugins&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; . DIRECTORY_SEPARATOR . &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;pluginmanager&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; . DIRECTORY_SEPARATOR . &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;core.php&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; ) ) { (( ) . DIRECTORY_SEPARATOR . &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;plugins&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; . DIRECTORY_SEPARATOR . &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;pluginmanager&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; . DIRECTORY_SEPARATOR . &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;core.php&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; ); $g_plugins_manager_core = ON; }

and that custom_strings_inc.php file contains these lines:
Language: PHP
((( ) . DIRECTORY_SEPARATOR . &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;plugins&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; . DIRECTORY_SEPARATOR . &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;pluginmanager&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; . DIRECTORY_SEPARATOR . &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;lang_inc.php&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; ) ) { (( ) . DIRECTORY_SEPARATOR . &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;plugins&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; . DIRECTORY_SEPARATOR . &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;pluginmanager&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; . DIRECTORY_SEPARATOR . &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;lang_inc.php&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; ); $g_plugins_manager_lang; $g_plugins_manager_lang = ON; }

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Problem with plugininstallaion 0.3.0
September 02, 2008 02:12AM
hi Vincent,
it seems that I still do something wrong. Now I have access to a plugin list even if I have no link on the top menu bar.. I have to go manually to /plugins_page.php to see the list.

But unlikely now the //localhost/mantis_120a2/manage_plugin_page.php shows this error:
Fatal error: Cannot redeclare microtime_float() (previously declared in C:\Programmi\xampp\htdocs\mantis_120a2\core.php:31) in C:\Programmi\xampp\htdocs\mantis_120a2\core.php on line 33

also the search plugin do not work, this is the error I got:
SYSTEM WARNING: require_once(config_filter_defaults_inc.php) [function.require-once]: failed to open stream: No such file or directory

Fatal error:
require_once() [function.require]: Failed opening required &#039;config_filter_defaults_inc.php&#039; (include_path=&#039;.;C:\Programmi\xampp\php\pear\&#039winking smiley in C:\Programmi\xampp\htdocs\mantis_120a2\core\filter_api.php on line 37

actually I have no issues in the database, it could be the problem?
i&#039;m trying to find the best config for my company. I found some plugins that could be very useful, but still I have a lof of problem.
Is it my fault?

as usual no other idea..
nb: i&#039;m not a php programmer.. as u understood already!

Cris by ArtGroup

Mantis: 1.1.2
PHP: 5.2.5
SQL: MySQL 5.0.51a
OS: XP SP2
Re: Problem with plugininstallaion 0.3.0
September 02, 2008 10:06AM
Did you add manually the lines I provided? If yes, where in the file (at the beginning, at the end)?

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Problem with plugininstallaion 0.3.0
September 02, 2008 10:13PM
I added it at the end on both file

Cris by ArtGroup

Mantis: 1.1.2
PHP: 5.2.5
SQL: MySQL 5.0.51a
OS: XP SP2
Re: Problem with plugininstallaion 0.3.0
September 02, 2008 10:56PM
I can&#039;t reproduce the error for the plugin manager. The search plugin is not yet compatible.

You can try to uninstall/reinstall the plugin manager. Don&#039;t forget that the webserver should have write access to the entire mantis directory hierarchy.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Problem with plugininstallaion 0.3.0
September 02, 2008 11:01PM
ok I try a fresh installation and let you know

Cris by ArtGroup

Mantis: 1.1.2
PHP: 5.2.5
SQL: MySQL 5.0.51a
OS: XP SP2
Re: Problem with plugininstallaion 0.3.0
September 03, 2008 12:34AM
Hi Vincent
for you information using a fresh Mantis 1.1.2 the plugins works fine (even not all of them) but is more stable

I try with a fresh 1.2.0a2 just to double check

Cris by ArtGroup

Mantis: 1.1.2
PHP: 5.2.5
SQL: MySQL 5.0.51a
OS: XP SP2
Re: Problem with plugininstallaion 0.3.0
September 03, 2008 08:44AM
Quote
artgroup
Hi Vincent
for you information using a fresh Mantis 1.1.2 the plugins works fine (even not all of them) but is more stable

Ok, tell me what is wrong (or just the plugin that don&#039;t work with 1.1.2).

Yesterday I saw that the search plugin is not working on 1.2.0a2 because of a bug in Mantis (not in the search plugin). I&#039;ll make a workaround in the search plugin as soon as possible.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Problem with plugininstallaion 0.3.0
September 04, 2008 12:14AM
On a new installation of Mantis 120a2 I confirm that all these plugins are correctly installed:
*Graph
*MyReport
*MyView
*ReleaseMgt

While Hierarchy 0.0.5 that shows this error and it&#039;s not possible to uninstall the plugin.

APPLICATION ERROR #401

Database query failed. Error received from database was #1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;WHERE project_id=&#039;1&#039;
ORDER BY category&#039; at line 3 for the query: SELECT DISTINCT( category ) as category
FROM
WHERE project_id=&#039;1&#039;
ORDER BY category


I tried to have a look to the hierarchy_api.php code and I found that at line 252 the error should be on the mantis table:
$t_mantis_project_category_table = config_get( &#039;mantis_project_category_table&#039; );

that on 120a2 has been renamed with:
mantis_category_table

also the structure of the table is different, now instead of &#039;category&#039; field there is [color=#000099][b]&#039;name&#039;[/b][/color]. So I tried to modify the code as:

$t_mantis_project_category_table = config_get( [color=#000066]&#039;mantis_category_table&#039;[/color] );

$cat_arr = array();
$t_id = $t_project[&#039;id&#039;];
$query = "SELECT DISTINCT( [color=#000066][b]name[/b][/color] ) as [color=#000066][b]name[/b][/color]
FROM $t_mantis_project_category_table
WHERE project_id=&#039;$t_id&#039;
ORDER BY [color=#000066][b]name[/b][/color]";

[u]I tried the query directly on SQL in phpadmin and it works![/u]. I don&#039;t know if this could help you.

cheers

Cris by ArtGroup

Mantis: 1.1.2
PHP: 5.2.5
SQL: MySQL 5.0.51a
OS: XP SP2
Re: Problem with plugininstallaion 0.3.0
September 04, 2008 12:50AM
I fixed it with this patch on hierarchy_api.php file:

$t_mantis_project_category_table = config_get( &#039;db_table_prefix&#039; ) . &#039;_category_table&#039;;

$cat_arr = array();
$t_id = $t_project[&#039;id&#039;];
$query = "SELECT DISTINCT ( name ) as category
FROM $t_mantis_project_category_table
WHERE project_id=&#039;$t_id&#039;
ORDER BY name";

I hope this help.

cheers

Cris by ArtGroup

Mantis: 1.1.2
PHP: 5.2.5
SQL: MySQL 5.0.51a
OS: XP SP2
Sorry, only registered users may post in this forum.

Click here to login



Online Users

Guests: 24
Record Number of Users: 1 on April 02, 2023
Record Number of Guests: 115 on November 09, 2023
Top Users
Hébergeur : Morinie.Fr