wp_booster error: td_api_base: A component with the ID: td_module_single_mob

Posted in: Newspaper
Post count: 75

Hey support team,

I have use custom plugin to edit some modules in original Newspaper theme

like

function hook_td_global_after()
{ //add the api code inside this function
// Update social share module
if ( class_exists('td_api_module') ) {
td_api_module::update('td_module_single',
array(
'file' => $this->plugin_path . "/modules/addthis-social-share.php"
)
);
td_api_module::update('td_module_single_mob',
array(
'file' => $this->plugin_path . "/modules/addthis-social-share-mob.php"
)
);
}
}
add_action('td_global_after', array($this, 'hook_td_global_after'));

So my question is
when I update module td_module_single I have no issues,
but when I start override the mobile theme td_module_single_mob
I see error from Booster

The module already exist!

But i’m not trying add new module I use API to update it :/

perhaps for mobile version I have to use another hook? not td_global_after

Post count: 75

BTW, sharing buttons from theme contain still have Google plus!!!!
Google Plus goes DOWN!!!

Also, perhaps you could add Addthis support for sharing buttons, many and many users love AddThis sharing buttons, but for now I just solve it by tagDivAPI

Post count: 22421

Hi,

Yes, this hook is already used in the file mentioned: https://www.screencast.com/t/AMzOzDc3W
The theme api system was never tested on the mobile theme plugin. Sorry.
The mobile theme cannot be edited using the main thee api implementatuon presented in our guides.
As for the sharing options, you can select which ones to show or which ones to not show from here: https://www.screencast.com/t/tScGvxeiTIn

Thank you!

Post count: 75

Hey @bogdan-b
TY for quick respond,
BTW Mobile theme accept my edits by API, problem shown on Backend(Dashboard) 🙂

Post count: 75

Hey @bogdan-b

Solved,


.td-wp-booster-error {
   display: none !important;
}

Solution level Wizard 99level ?

just in case, Bogdan,
can you add to backlog to solve API issue?

I just hide error for my users, but its like Homer Simpson checkEngine solution

  • This reply was modified 7 years by reatlat.
  • This reply was modified 7 years by reatlat.
Post count: 20688

Hi,

I will add this topic on our list on our list and it will be looked at by our developers.

Thanks

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.