Hi,
– Open Plugin Editor in Dashboard
– Select WP Category Tag Cloud Plugin
– Open ‘classes/wpctc_widget.php’
– go to line 207 and change ‘+” into ‘.’
thats it!
All the best
a bit more detailed 🙂
before:
207: if (isset($instance[$instance[‘taxonomy’] + ‘_id’])
208: && count($instance[$instance[‘taxonomy’] + ‘_id’]) > 0
209: && !in_array($tag->tag_id, $instance[$instance[‘taxonomy’] + ‘_id’])
after:
207: if (isset($instance[$instance[‘taxonomy’] . ‘_id’])
208: && count($instance[$instance[‘taxonomy’] . ‘_id’]) > 0
209: && !in_array($tag->tag_id, $instance[$instance[‘taxonomy’] . ‘_id’])
-
This reply was modified 1 year, 3 months ago by
mac303.
Hello! This did not resolve the issue. I have replaced in completion what you have above and cleared cache and still have the error warning.
Warning: Use of undefined constant ‘taxonomy’ – assumed ‘‘taxonomy’’ (this will throw an Error in a future version of PHP) in /home4/tomyyoun/public_html/wp-content/plugins/wp-category-tag-could/classes/wpctc-widget.php on line 207
Help 🙂
@noellemena Hi,
it seems a problem now with the constant naming of ‘taxonomy’ . .. maybe it’s a problem with copy paste here out of the board.
Just remove the -> ” <- on start and end of ‘taxonomy’. PHP should understand it. 🙂
Hope it helped.
All the Best
Hey! I do not have any ” on the start or end of taxonomy. I just have what you put above and it is
if (isset($instance[$instance[‘taxonomy’] . ‘_id’])
&& count($instance[$instance[‘taxonomy’] . ‘_id’]) > 0
&& !in_array($tag->tag_id, $instance[$instance[‘taxonomy’] . ‘_id’])
Everthing inside brackets [ ] seems to have the ‘ on each side like you have it here…
[‘taxonomy’]
What am I missing?
Thanks so much!
Hey, any update on this above? Clarification?
Thanks! Love the plugin and want to keep using it!