1
liomj
Mymenus Module with XOOPS 2.5.11-Stable
  • 1/2 2:46

  • liomj

  • Just popping in

  • Posts: 94

  • Since: 2012/4/10


Hi anyone have a working mymenus module with XOOPS 2.5.11-Stable

i have a site using the following environment and is working fine

myMenus version 1.3
XOOPS Version XOOPS 2.5.11-Beta2
PHP Version 7.4.29
MySQL Version 5.5.5-10.4.24-MariaDB


now i would like to try XOOPS 2.5.11-Stable and i have tried using the following environment
----------------
mymenu version 1.54 Beta 2 (https://github.com/xoopsmodules25x/mymenus)
XOOPS Version XOOPS 2.5.11-Stable
PHP Version 7.4.33
MySQL Version 5.5.5-10.4.27-MariaDB
Error : menu is not appearing
Only variables should be assigned by reference in file /modules/mymenus/blocks/mymenus_block.php line 28
Unknown: Non-static method MymenusRegistry::getInstance() should not be called statically in file /modules/mymenus/blocks/mymenus_block.php line 35
--------------------
Mymenu version: 1.54 Beta 5 (https://github.com/mambax7/mymenus)
XOOPS Version XOOPS 2.5.11-Stable
PHP Version 8.2.12
MySQL Version 10.4.32-MariaDB
Error : SmartyException: Unable to load template 'db:mymenus_block.html

2
zyspec
Re: Mymenus Module with XOOPS 2.5.11-Stable
  • 1/12 21:01

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Version mymenu version 1.54 Beta 2
This may not be the problem (I haven't tried loading the module yet) - but depending on OS and version of PHP, etc. the case of the file name matters. You may want to rename ./mymenus/class/registry.php to ./mymenus/class/Registry.com and the same with the builder.php file (to Builder.php). Then "update" the module. It could be the reason the Mymenus\Registry::getInstance() isn't loading correctly.

Version mymenu version 1.54 Beta 5
Is this a fresh install or did you update a previous version. There's a note in the update script that says
//TODO replace mymenus_block.html in newblocks table with mymenus_block.tpl


I suspect this is part of the reason it's still a BETA release - the update scripts aren't complete yet. You might look at the db table and see what it contains for the template (mymenus_block.html or mymenus_block.tpl).

3
Mamba
Re: Mymenus Module with XOOPS 2.5.11-Stable

There will be a new update coming soon, hopefully sometime next week
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

4
zyspec
Re: Mymenus Module with XOOPS 2.5.11-Stable
  • 1/15 16:31

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Sorry... rename is from ./mymenus/class/registry.php to ./mymenus/class/Registry.php - dumb autocorrect got me again.

5
liomj
Re: Mymenus Module with XOOPS 2.5.11-Stable
  • 1/16 4:56

  • liomj

  • Just popping in

  • Posts: 94

  • Since: 2012/4/10


Thank you mamba and zyspec

i tried again this version in a new installation

mymenu version 1.54 Beta 2 (https://github.com/xoopsmodules25x/mymenus)

XOOPS Version XOOPS 2.5.11-Stable
PHP Version 7.4.33
MySQL Version 5.5.5-10.4.27-MariaDB

renamed class/Registry.php and Builder.php
Modules successful installed
- when try to access the mymenus administration
Error: SmartyCompilerException: Syntax error in template "file:/modules/mymenus/templates/static/mymenus_admin_menus.tpl" on line 45 "" in file /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php line 45

6
Mamba
Re: Mymenus Module with XOOPS 2.5.11-Stable

Unfortunately, my PC crashed again, and I have to send it to Dell to fix it, so I don’t know when I’ll be able to upload the new version (assuming that they will be able to fix it and recover the data)
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

7
Mamba
Re: Mymenus Module with XOOPS 2.5.11-Stable

Please check out the Beta 6 and see if it works better.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

8
liomj
Re: Mymenus Module with XOOPS 2.5.11-Stable
  • 11/1 5:21

  • liomj

  • Just popping in

  • Posts: 94

  • Since: 2012/4/10


Quote:

Mamba wrote:
Please check out the Beta 6 and see if it works better.


i made some testing with beta6

Error: Error: Undefined constant "_MI_MYMENUS_HELP_OVERVIEW" in file /modules/mymenus/xoops_version.php line 84
and multiple error in undefined constant in line 84-89 135-136, in xoops_version.php

and Error: Error: Undefined constant "_MI_MYMENUS_ADMMENU0" in file /modules/mymenus/admin/menu.php line 44

i uncomment it temporarily and now mymenu is loading and i can access the module admin interface but found another error i cant save the changes in mymenus block.. i would like to try the assign to template feature

Warning: Undefined array key 4 in file /modules/mymenus/blocks/mymenus_block.php line 237

my environment
XOOPS Version XOOPS 2.5.11-Stable
PHP Version 8.2.12
MySQL Version 10.4.32-MariaDB

9
Mamba
Re: Mymenus Module with XOOPS 2.5.11-Stable

It seems like you might miss local translations, because both:

_MI_MYMENUS_HELP_OVERVIEW
_MI_MYMENUS_ADMMENU0

are defined in the language file: https://github.com/mambax7/mymenus/blob/master/language/english/modinfo.php

I'll look later at the block problem
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

10
liomj
Re: Mymenus Module with XOOPS 2.5.11-Stable
  • 11/1 23:05

  • liomj

  • Just popping in

  • Posts: 94

  • Since: 2012/4/10


Quote:

Mamba wrote:
It seems like you might miss local translations, because both:

_MI_MYMENUS_HELP_OVERVIEW
_MI_MYMENUS_ADMMENU0

are defined in the language file: https://github.com/mambax7/mymenus/blob/master/language/english/modinfo.php

I'll look later at the block problem


Yes sorry, i fixed my local translation, all is working now, the block saving is working fine

but i still cant use the assign to template feature, right now only the display in block is working

i will made further testing. Thank you Mamba

Login

Who's Online

128 user(s) are online (81 user(s) are browsing Support Forums)


Members: 0


Guests: 128


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits