by Vedisoft

Visualize and manage your "work in progress" by dragging and dropping your records. Add a Kanban view for any SugarCRM or SuiteCRM module. Great for sales pipelines, leads pipeline, account pipeline, support team boards, project management, and more.

Cancel at any time!
Free Trial

#2925 - SuiteCRM 7.8.2 - Blank Screen

Closed Bug? created by taufiqueahmed Verified Purchase 3 years ago

Hi :)

I have just installed Kanban onto a clean install of SuiteCRM 7.8.2 and SuiteP theme

We upload the plugin
Quick repair

Go to Kanban module

Create a dashboard

Blank Screen

It did complain about ajax error and I uninstalled / reinstalled the plugin

No errors and just a blank screen

  1. Vedisoft member avatar

    Vedisoft Provider

    3 years ago

    Hi. There was a bug in SuiteCRM 7.8.1.
    I guess it could be still there.
    We will check it on 7.8.2 and I will advice

  2. taufiqueahmed member avatar

    taufiqueahmed Verified Purchase

    3 years ago

    After investigating the issue a little further we find these errors below

    We are running in PHP7
    Is your plugin compatible with PHP7?

    [Wed Mar 08 10:54:13 2017] [warn] [client 87.224.92.20] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to undefined method Link2::getRelatedTableName() in /var/www/vhosts/engagecrm.co.uk/clients/iifx/modules/Kanban/Kanban.php:175, referer: SUITE_URL/index.php?module=Kanban&action=DetailView&record=6b1503be-d8f6-1894-957d-58bfe1f8fbd8
    [Wed Mar 08 10:54:13 2017] [warn] [client 87.224.92.20] mod_fcgid: stderr: Stack trace:, referer: http://iifx.engagecrm.co.uk/index.php?module=Kanban&action=DetailView&record=6b1503be-d8f6-1894-957d-58bfe1f8fbd8
    [Wed Mar 08 10:54:13 2017] [warn] [client 87.224.92.20] mod_fcgid: stderr: #0 SUITE_DIR/modules/Kanban/Kanban.php(379): Kanban->getMarkByBean(Object(Account)), referer: http://iifx.engagecrm.co.uk/index.php?module=Kanban&action=DetailView&record=6b1503be-d8f6-1894-957d-58bfe1f8fbd8
    [Wed Mar 08 10:54:13 2017] [warn] [client 87.224.92.20] mod_fcgid: stderr: #1 SUITE_DIR/modules/Kanban/Kanban.php(359): Kanban->processBean(Object(Account)), referer: http://iifx.engagecrm.co.uk/index.php?module=Kanban&action=DetailView&record=6b1503be-d8f6-1894-957d-58bfe1f8fbd8
    [Wed Mar 08 10:54:13 2017] [warn] [client 87.224.92.20] mod_fcgid: stderr: #2 SUITE_DIR/modules/Kanban/views/view.kanban.php(61): Kanban->getColumnsWithItems(), referer: http://iifx.engagecrm.co.uk/index.php?module=Kanban&action=DetailView&record=6b1503be-d8f6-1894-957d-58bfe1f8fbd8
    [Wed Mar 08 10:54:13 2017] [warn] [client 87.224.92.20] mod_fcgid: stderr: #3 SUITE_DIR/modules/Kanban/views/view.kanban.php(179): KanbanViewKanban->getColumns(), referer: http://iifx.engagecrm.co.uk/index.php?module=Kanban&action=DetailView&record=6b1503be-d8f6-1894-957d-58bfe1f8fbd8
    [Wed Mar 08 10:54:13 2017] [warn] [client 87.224.92.20] mod_fcgid: stderr: #4 SUITE_DIR/include/MVC/View/SugarView.php(169): KanbanViewKanban->display(), referer: http://iifx.engagecrm.co.uk/index.php?module=Kanban&action=DetailView&record=6b1503be-d8f6-1894-957d-58bfe1f8fbd8
    [Wed Mar 08 10:54:13 2017] [warn] [client 87.224.92.20] mod_fcgid: stderr: #5 SUITE_DIR/include/MVC/Controller/SugarController.php(363): SugarView->process(), referer: http://iifx.engagecrm.co.uk/index.php?module=Kanban&action=DetailView&record=6b1503be-d8f6-1894-957d-58bfe1f8fbd8
    [Wed Mar 08 10:54:13 2017] [warn] [client 87.224.92.20] mod_fcgid: stderr: #6 SUITE_DIR/include/MVC/Controller/SugarController.php(310): SugarController->processView(), referer: http://iifx.engagecrm.co.uk/index.php?module=Kanban&action=DetailView&record=6b1503be-d8f6-1894-957d-58bfe1f8fbd8
    [Wed Mar 08 10:54:13 2017] [warn] [client 87.224.92.20] mod_fcgid: stderr: #7 SUITE_DIR/modules/Kanban/Kanban.php on line 175, referer: http://iifx.engagecrm.co.uk/index.php?module=Kanban&action=DetailView&record=6b1503be-d8f6-1894-957d-58bfe1f8fbd8

  3. taufiqueahmed member avatar

    taufiqueahmed Verified Purchase

    3 years ago

    Thank you for your reply
    Look forward to hearing from you

  4. taufiqueahmed member avatar

    taufiqueahmed Verified Purchase

    3 years ago

    Hi Great news

    We seemed to have resolved the issue :)

    code needs to be changed with this

    $table = $bean->{$link['name']}->getRelationshipObject()->{'rhs_table'}

    $bean->{SOMETHING} does not have the method getRelatedTableName.

    the methodet RelatedTableName does not exist anymore or at least I could not find it,
    to get information about a related field, the relationship object needs to be loaded in and grab it from there.

    some extra logic may be required to ensure you are grabbing the table name from the correct side of the relationship

  5. Vedisoft member avatar

    Vedisoft Provider

    3 years ago

    That problem is reported for SuiteCRM 7.8.1+ in that bugs:
    https://github.com/salesagility/SuiteCRM/issues/3077
    and
    https://github.com/salesagility/SuiteCRM/issues/3079

    before 7.8.2 we recomended to do the following:
    in file /data/Link2/Link2.php add (return deleted) method
        public function getRelatedTableName() {
            return BeanFactory::getBean($this->getRelatedModuleName())->table_name;
        }

    It seems that SuiteCRM is not going to return back that method. So the solution you used and is even better.

  6. Vedisoft member avatar

    Vedisoft Provider

    3 years ago

    do you have any problem with our module now?

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...

Keep up to date on the latest additions

We'll send you an email every month with handpicked add-ons, reviews, tricks and tips. Don't worry, we hate spam as much as you do.