• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[MyAAC][Plugin][Template] Emma

MyAAC

Active Member
Joined
May 4, 2017
Messages
96
Best answers
8
Reaction score
49
Last edited by a moderator:

grafit

New Member
Joined
Sep 11, 2008
Messages
71
Best answers
0
Reaction score
2
Hello.

I got a problem using emma's template.

For some reason menu was not loaded on the page.

I went to the index.php file and found the following code:

PHP:
<div id="menu">
  <?php
      $menu_table_exist = tableExist(TABLE_PREFIX . 'menu');
      if($menu_table_exist) {
               require_once($template_path . '/menu_dynamic.php');
       }
       else {
             require_once($template_path . '/menu.php');
      }
   ?>
</div>
In the admin page I went to the menu option and there was no emma template in the list to edit.

The temporary solution was to remove some lines from the code to control the menu only by the menu.php
PHP:
<div id="menu">
<?php
require_once($template_path . '/menu.php');
?>
</div>

Could you help?
 

slawkens

Developer
Premium User
Joined
Aug 27, 2007
Messages
3,009
Best answers
75
Reaction score
521
Location
Germany
Hello.

I got a problem using emma's template.

For some reason menu was not loaded on the page.

I went to the index.php file and found the following code:

PHP:
<div id="menu">
  <?php
      $menu_table_exist = tableExist(TABLE_PREFIX . 'menu');
      if($menu_table_exist) {
               require_once($template_path . '/menu_dynamic.php');
       }
       else {
             require_once($template_path . '/menu.php');
      }
   ?>
</div>
In the admin page I went to the menu option and there was no emma template in the list to edit.

The temporary solution was to remove some lines from the code to control the menu only by the menu.php
PHP:
<div id="menu">
<?php
require_once($template_path . '/menu.php');
?>
</div>

Could you help?
Did you tried to reinstall this emma template? You had any errors when installing?

Seems there's no config.php in your templates/emma directory (not showing in admin panel).

And for not showing menu, is anything in your database table myaac_menu with name emma? Or only other names?
 

lord2020

New Member
Joined
Mar 29, 2020
Messages
3
Best answers
0
Reaction score
0
Thank you very much, I have one more question
when an emailer tries to send an email, I get an error
Error sending message preview. More information can be found in the system / logs / mailer-error.log file
 

slawkens

Developer
Premium User
Joined
Aug 27, 2007
Messages
3,009
Best answers
75
Reaction score
521
Location
Germany
Thank you very much, I have one more question
when an emailer tries to send an email, I get an error
Error sending message preview. More information can be found in the system / logs / mailer-error.log file
Look into logs as said.
 

lord2020

New Member
Joined
Mar 29, 2020
Messages
3
Best answers
0
Reaction score
0
this is in error.log

[Thu, 02 Apr 2020 06:32:55 +0000]
Could not instantiate mail function.

[Thu, 02 Apr 2020 06:34:03 +0000]
Could not instantiate mail function.

[Thu, 02 Apr 2020 12:34:00 +0000]
Could not instantiate mail function.

[Thu, 02 Apr 2020 12:34:13 +0000]
Could not instantiate mail function.

[Thu, 02 Apr 2020 12:34:16 +0000]
Could not instantiate mail function.
 

slawkens

Developer
Premium User
Joined
Aug 27, 2007
Messages
3,009
Best answers
75
Reaction score
521
Location
Germany
Set
Code:
'smtp_debug' => true,
in config.php
 
Top