Blocks and Modules customization via td-api-plugin

Posted in: Newsmag
Post count: 20

hi, i’ve read your documentation about the theme API but it seems incomplete.

i tried to upload the td-api-plugin.zip from code folder via wordpress but it gave me error 500.

i check the logs and it has this error:
PHP Fatal error: Class ‘td_wp_booster_config’ not found (my_url)_td-api-plugin.php
and so on..

i’ve checked the td-api-plugin.php and it seems that this code causes the error


"params" => array_merge(
td_wp_booster_config::get_map_block_general_array(),
td_wp_booster_config::get_map_filter_array(),
td_wp_booster_config::get_map_block_ajax_filter_array(),
td_wp_booster_config::get_map_block_pagination_array()
)

Basically, it can’t find the td_wp_booster_config class..

can you help me fix this issue?

Thanks!

Post count: 6535

Hi

Are you using a theme version above V 2.2.1? In this case you have to use a newer plugin’s version which can be found here: https://forum.tagdiv.com/practical-example-how-to-add-a-new-block-and-module/ More details about this plugin can also be found in our documentation: https://forum.tagdiv.com/practical-example-how-to-add-a-new-block-and-module/

Let me know how it goes.
Thanks!

Post count: 20

Correct! td-api-plugin v1.1 worked. I’m using the latest newsmag version 2.3.4 and what’s bundled is old version of the plugin which is v1.0.. hope you bundle the latest plugin there in the next updates to avoid this issue.

Thanks a lot!

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