Jump to content

Multiple calls to a widget


ilijamt

Recommended Posts

Hi,

 

I've setup logging on the widget and I've noticed that the widget is called 3 times, any reason why it would this be ?

 

if (!defined('WHMCS')) {
   exit('This file cannot be accessed directly');
}

function widget_test_panel($vars) {
               localAPI("logactivity", array("description" => "I'm in"));
}

 

This one shows multiple times in the log activity?

How can I disable this, it's stupid to start the widget multiple times.

 

I've tried this even on whmcs_news.php widget and same thing happens, by just adding the localAPI function at the begining of the function.

I get 4 entries in the logs

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated