41
ceca69
XOOPS 2.5.11 search user is not working
  • 1/5 16:11

  • ceca69

  • Just popping in

  • Posts: 8

  • Since: 2003/9/29


Hi,
in the same PC is running php 7.3.33 and mysql 5.7.33
in my old env xoops 2.5.10
url /modules/system/admin.php?fct=users
when I access the page you will see the list of the user registered
if I press SEARCH button I can still see the list of the users
if I type 'ceca' (for example) and press SEARCH I see in list just one user (as it should be)

in the 2 new site in 2.5.11
where one is upgraded and one is fresh installed
same page url /modules/system/admin.php?fct=users
the behavior is the same for both new site
when I access the page you will see the list of the user registered
when I press SEARCH button the list is empy
If I search for a username I always receive not found and what I typed in the field disappear

Let me know if you need more info to troubleshoot
Carlo



42
Mamba
Re: Assign Smarty variable to PHP with XOOPS 2.5.11-Stable

In Smarty 3, the tags are no longer supported. Instead, you need to use Smarty's built-in functions and modifiers to accomplish tasks that previously required PHP code.

If you need both $cid and $catid, then you can use Smarty's $smarty.template_vars variable to access the template variable value instead of get_template_vars():

{assign var="cid" value=$downloads.cid}
{
assign var="catid" value=$smarty.template_vars.cid}


The $smarty.template_vars variable contains all assigned template variables and their values. So you can access the value of $cid through $smarty.template_vars.cid in place of the PHP code.

This allows you to eliminate tags and leverage Smarty's features and syntax to access template variables and perform other logic in the template.

Let us know if this worked
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



43
liomj
Assign Smarty variable to PHP with XOOPS 2.5.11-Stable
  • 1/3 3:29

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


lasttime before the xoops upgrade to smarty 3 this is working
<{assign var="cid" value=$downloads.cid}>    
<{
php}>
$catid=$this->get_template_vars('cid'); 
<{/
php}>


now after using
XOOPS 2.5.11-Stable with smarty 3

i receive this error
Error ErrorUsing $this when not in object context


how to update this code ?



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

  • liomj

  • Just popping in

  • Posts: 77

  • 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



45
alain01
Migration to 2.5.11 final
  • 1/1 19:19

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Hi,
in the process of migration,
I read: "copy /upgrade (...) then run /upgrade/preflight.php"

I think we should read : "copy /themes to the themes direxctory then" "copy /upgrade (...) then run /upgrade/preflight.php"

Why ?
Cause we run on a XOOPS 2.5.11 RCx version, We need to update the very last version of the files in the theme directory otherwise we get lot of error that they are already ok in the final version.

I used the automatic coorection:
"Click the "Yes" checkbox below and then click the Run Scan button to try to automatically fix any issues found."

it works fine in 2 steps !

Then the process for the module is fine but same think, we need to copy /modules directory in the module XOOPS directory

Then I copied others directories the the upgrade finish
Very very good work, dev team !

A least, I think the process is not clear.
- Either we copy the full directories in the root (for xoops_data + xoops_lib, copy in the special secure directory) then launch the whole process
- Either we copy /upgrade in the root directory + /themes in /themes, and /modules in the modules directory then launch the process, preflight, then copy other directories then launch the upgrade process.



46
againyear
Re: Error with the search in this forum
  • 12/29 7:07

  • againyear

  • Just popping in

  • Posts: 1

  • Since: 12/18 3:20


I confirm, thanks



47
Mamba
Re: Error with the search in this forum

Excellent news!

Thank you for the testing and for letting me know!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



48
alain01
Re: Error with the search in this forum
  • 12/18 9:11

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Hi Michael,

- Search field in this forum, on the xoops.org:
Fixed !
All is ok with it, thank you.

- Problem with the smarty variables in the notification mail:
Fixed !
Now, the mail is like this : Quote:
[XOOPS Web Application System] Support Forums auto-notify : New post in thread
Hello alain01,

A new post has been added to the topic "Re: Error with the search in this forum".

Follow this link to view the post:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=79470&post_id=367108#forumpost367108

Follow this link to view the thread:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=79470
-----------
You are receiving this message because you selected to be notified when new posts are added to this topic.

If this is an error, or if you wish not to receive further such notifications, pleas
e update your subscriptions by visiting the link below:
https://xoops.org/notifications.php

-----------

XOOPS Web Application System (https://xoops.org/)
webmaster
webmaster@xoops.org
Good work, thank you !



49
Mamba
Re: Error with the search in this forum

Hi Alain,

I hope, the problem with the Smarty variables in email notifications has been also fixed (see:https://github.com/XOOPS/XoopsCore25/pull/1443)

Please confirm...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



50
Mamba
Re: Error with the search in this forum

Thanks, Alain!
It has been now fixed!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs




TopTop
« 1 2 3 4 (5) 6 7 8 ... 29422 »



Login

Who's Online

93 user(s) are online (76 user(s) are browsing Support Forums)


Members: 0


Guests: 93


more...

Donat-O-Meter

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

Latest GitHub Commits