Project

General

Profile

Bug #1122

not possible to publish portfolio

Added by Anonymous almost 11 years ago. Updated almost 10 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
Nathalie Blocry
Target version:
Start date:
28/04/2010
Due date:
% Done:

50%

Estimated time:
Complexity:
Normal

Description

It is no longer possible to publish portfolio from the repository, or from the portfolio application.

History

#1

Updated by Nathalie Blocry almost 11 years ago

  • Assignee set to Nathalie Blocry
  • % Done changed from 0 to 50

publishing from portfolio application should work

looking at publishing from repository now

#2

Updated by Nathalie Blocry almost 11 years ago

worked until I pulled new code. seems to have to de with some refactoring that requires an application launcher class next to the application manager class
will look into it next week

#3

Updated by Nathalie Blocry almost 11 years ago

problem is in the class LocationSelectionPublisherWizardPage (repository.lib.repository_manager.component.publication_wizard.pages.location_selection_publishcer_wizard_page.class.php)

when the checkbox for the application for publication is created (in this case the PortfolioManager) the value of the checkbox is "Portfolio|0" while it should be
"portfolio|0"

the application name is put in capital letters with the $application_name = Utilities :: underscores_to_camelcase($application_name); on line 190
if I add $application_name = strtolower($application_name); it works perfectly.

should I change this here or should the name of the application changed from "portfolio" to "Portfolio" somewhere?

#4

Updated by Anonymous almost 11 years ago

It now is possible to publish a portfolio from the repository (but still not from the portfolio application), but opening it in the portfolio application leads to this error:

MDB2_Error Object ( [error_message_prefix] => [mode] => 16 [level] => 1024 [code] => 18 [message] => MDB2 Error: no such table [userinfo] => doQuery: [Error message: Could not execute statement] [Last executed query: SELECT * FROM `portfolio_portfolio_information` AS alias_ppi WHERE alias_ppi.`id` = '2' LIMIT 0, 1] [Native code: 1146] [Native message: Table 'chamilo.portfolio_portfolio_information' doesn't exist] [backtrace] => Array ( [0] => Array ( [file] => C:\wamp\www\chamilogoogle\plugin\pear\MDB2.php [line] => 1009 [function] => PEAR_Error [class] => PEAR_Error [type] => -> [args] => Array ( [0] => MDB2 Error: no such table [1] => -18 [2] => 16 [3] => Array ( [0] => DatabaseRepositoryDataManager [1] => handle_error ) [4] => _doQuery: [Error message: Could not execute statement] [Last executed query: SELECT * FROM `portfolio_portfolio_information` AS alias_ppi WHERE alias_ppi.`id` = '2' LIMIT 0, 1] [Native code: 1146] [Native message: Table 'chamilo.portfolio_portfolio_information' doesn't exist] ) ) [1] => Array ( [file] => C:\wamp\www\chamilogoogle\plugin\pear\PEAR.php [line] => 574 [function] => MDB2_Error [class] => MDB2_Error [object] => MDB2_Error Object RECURSION [type] => -> [args] => Array ( [0] => -18 [1] => 16 [2] => Array ( [0] => DatabaseRepositoryDataManager [1] => handle_error ) [3] => _doQuery: [Error message: Could not execute statement] [Last executed query: SELECT * FROM `portfolio_portfolio_information` AS alias_ppi WHERE alias_ppi.`id` = '2' LIMIT 0, 1] [Native code: 1146] [Native message: Table 'chamilo.portfolio_portfolio_information' doesn't exist] ) ) [2] => Array ( [file] => C:\wamp\www\chamilogoogle\plugin\pear\MDB2.php [line] => 1497 [function] => raiseError [class] => PEAR [object] => MDB2_Driver_mysqli Object ( [string_quoting] => Array ( [start] => ' [end] => ' [escape] => \ [escape_pattern] => \ ) [identifier_quoting] => Array ( [start] => ` [end] => ` [escape] => ` ) [sql_comments] => Array ( [0] => Array ( [start] => - [end] => [escape] => ) [1] => Array ( [start] => # [end] => [escape] => ) [2] => Array ( [start] => /* [end] => */ [escape] => ) ) [server_capabilities_checked] => 1 [start_transaction] => 1 [varchar_max_length] => 65532 [db_index] => 1 [dsn] => Array ( [phptype] => mysqli [dbsyntax] => mysqli [username] => root [password] => [protocol] => tcp [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connected_dsn] => Array ( [phptype] => mysqli [dbsyntax] => mysqli [username] => root [password] => [protocol] => tcp [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connection] => mysqli Object ( ) [opened_persistent] => [database_name] => chamilo [connected_database_name] => chamilo [connected_server_info] => 5.1.36-community-log [supported] => Array ( [sequences] => emulated [indexes] => 1 [affected_rows] => 1 [summary_functions] => 1 [order_by_text] => 1 [transactions] => 1 [savepoints] => 1 [current_id] => emulated [limit_queries] => 1 [LOBs] => 1 [replace] => 1 [sub_selects] => 1 [triggers] => 1 [auto_increment] => 1 [primary_key] => 1 [result_introspection] => 1 [prepared_statements] => 1 [identifier_quoting] => 1 [pattern_escaping] => 1 [new_link] => 1 ) [options] => Array ( [ssl] => [field_case] => 0 [disable_query] => [result_class] => MDB2_Result%s [buffered_

etc....

#5

Updated by Nathalie Blocry almost 11 years ago

have you re-installed since yesterday? there is a new db-table for the portfolio application.

i am still updating some stuff that will be pushed later today (changes that requires a new install since I am changing the primary key in this new table) so there are still some problems.
please test it again after my next code-push

#6

Updated by Anonymous almost 11 years ago

I have now & the mdb2 error has gone.
It still is not possible to publish a portfolio from the portfolio application.
Deleting a portfolio from the application creates an error:

Fatal error: Class 'PortfolioPublicationGroup' not found in C:\wamp\www\chamilogoogle\application\lib\portfolio\data_manager\database_portfolio_data_manager.class.php on line 73

#7

Updated by Nathalie Blocry over 10 years ago

  • Status changed from New to Needs testing
#8

Updated by Stefaan Vanbillemont over 10 years ago

  • Status changed from Needs testing to Bug resolved

Tested and fixed!

#9

Updated by Stefaan Vanbillemont almost 10 years ago

  • Project changed from Chamilo LCMS Connect to Portfolio
  • Category deleted (30)
#10

Updated by Stefaan Vanbillemont almost 10 years ago

  • Target version changed from 2 to 1.0.0

Also available in: Atom PDF