V
V
Vanes Ri_Lax2019-05-08 13:16:03
Joomla
Vanes Ri_Lax, 2019-05-08 13:16:03

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

I can't figure out what could be the problem?
Joomla version 1.5.26
PHP version 5.6

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alfieros, 2019-05-08
@mrsexy

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.

A
Alexey Verkhovtsev, 2017-04-18
@r0hack

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 question

Ask a Question

731 491 924 answers to any question