Answer the question
In order to leave comments, you need to log in
Why is Joomla throwing errors?
Good afternoon,
I go to the section on the site, and it shows me the following errors:
Deprecated: Non-static method modmaximenu_CKHelper::GetMenu() should not be called statically, assuming $this from incompatible context in /www/modules/mod_maximenu_CK/mod_maximenu_CK.php on line 13
Strict Standards: Non-static method JLoader::import() should not be called statically in /www/libraries/loader.php on line 186
Deprecated: Non-static method JFactory::getDocument() should not be called statically, assuming $this from incompatible context in /www/modules/mod_maximenu_CK/helper.php on line 34
Deprecated: Non-static method JURI::base() should not be called statically, assuming $this from incompatible context in /www/modules/mod_maximenu_CK/helper.php on line 40
Deprecated: Non-static method JURI::base() should not be called statically, assuming $this from incompatible context in /www/modules/mod_maximenu_CK/helper.php on line 42
Deprecated: Non-static method JHTML::_() should not be called statically, assuming $this from incompatible context in /www/modules/mod_maximenu_CK/helper.php on line 57
Answer the question
In order to leave comments, you need to log in
Judging by the log, you have a version incompatibility.
Methods called from an incompatible context have been deprecated and will throw an E_DEPRECATED level error instead of an E_STRICT.
You need a PHP version lower than 5.6.
Hello! Create a new WP_Query object, give it parameters, it will populate your $post object.
$my_posts = new WP_Query(); You can specify different options for creating a selection. More details here https://wp-kama.ru/function/wp_query or here https://codex.wordpress.org/Class_Reference/WP_Query
<? if ( $my_posts->have_posts() ) : ?>
<? while ( $my_posts->have_posts() ) : $my_posts->the_post(); ?>
<h4><? the_title(); ?></h4>
<? endwhile ?>
<? endif ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question