111
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).



112
audizioni
Re: newBB 5.1.0 error admin
  • 1/10 22:39

  • audizioni

  • Just popping in

  • Posts: 17

  • Since: 2009/1/11


Thank you.
I tried removing "@", but the error remains.
Tomorrow morning I'll try this second solution and let you know



113
Mamba
Re: newBB 5.1.0 error admin

If there are still problems, try to replace the function in /modules/newbb/admin/index.php starting on line 68:
function newbb_getImageLibs()
{
    
$imageLibs = [];
    
//    unset($output, $status);
    
if (== $GLOBALS['xoopsModuleConfig']['image_lib'] || == $GLOBALS['xoopsModuleConfig']['image_lib']) {
        
$path = empty($GLOBALS['xoopsModuleConfig']['path_magick']) ? '' $GLOBALS['xoopsModuleConfig']['path_magick'] . '/';
        @
exec($path 'convert -version'$output$status);
        if (empty(
$status) && !empty($output) && preg_match("/imagemagick[ t]+([0-9.]+)/i"$output[0], $matches)) {
            
$imageLibs['imagemagick'] = $matches[0];
        }

        unset(
$output$status);
    }
    if (
== $GLOBALS['xoopsModuleConfig']['image_lib'] || == $GLOBALS['xoopsModuleConfig']['image_lib']) {
        
$path = empty($GLOBALS['xoopsModuleConfig']['path_netpbm']) ? '' $GLOBALS['xoopsModuleConfig']['path_netpbm'] . '/';
        @
exec($path 'jpegtopnm -version 2>&1'$output$status);
        if (empty(
$status) && !empty($output) && preg_match("/netpbm[ t]+([0-9.]+)/i"$output[0], $matches)) {
            
$imageLibs['netpbm'] = $matches[0];
        }
        unset(
$output$status);
    }

    if (
function_exists('gd_info')) {
        
$tmpInfo         gd_info();
        
$imageLibs['gd'] = $tmpInfo['GD Version'];
    }

    return 
$imageLibs;
}


with this code:

function getPhpInfo($section INFO_GENERAL)
{
    static 
$infoCache = [];

    if (!isset(
$infoCache[$section])) {
        
ob_start();
        
phpinfo($section);
        
$infoCache[$section] = ob_get_clean();
    }

    return 
$infoCache[$section];
}

function 
newbb_getImageLibs()
{
    
$imageLibs = [];

    
// Check for GD library
    
if (function_exists('gd_info')) {
        
$tmpInfo         gd_info();
        
$imageLibs['gd'] = $tmpInfo['GD Version'];
    }

    
$info = (array)getPhpInfo();

    
// Check for ImageMagick
    
if (== $GLOBALS['xoopsModuleConfig']['image_lib'] || == $GLOBALS['xoopsModuleConfig']['image_lib']) {
        if (
preg_match("/ImageMagicks+([0-9\.]+)/i"implode(" "$info), $matches)) {
            
$imageLibs['imagemagick'] = $matches[1];
        }
    }

    
// Check for NetPBM
    
if (== $GLOBALS['xoopsModuleConfig']['image_lib'] || == $GLOBALS['xoopsModuleConfig']['image_lib']) {
        if (
preg_match("/netpbms+([0-9\.]+)/i"implode(" "$info), $matches)) {
            
$imageLibs['netpbm'] = $matches[1];
        }
    }

    return 
$imageLibs;
}


and let me know if it helps.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



114
Mamba
Re: newBB 5.1.0 error admin

It is possible that your PHP configuration isn't allowing the core function exec to be used
The function is often disabled on shared hosting servers, so check the php.ini file on the server and make sure that ’exec’ is not listed as part of "disable_functions" in php.ini

You can also check using the phpinfo() - see here how to do it
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



115
audizioni
newBB 5.1.0 error admin

Good morning. I'm trying various modules on the updated site.
The newBB module gives me the following error on the administration side:
Error: Error: Call to undefined function exec() in file /modules/newbb/admin/index.php line 74
Can you help me?

http://www.audizioni.it
XOOPS Version XOOPS 2.5.11-Stable
PHP Version 8.1.23
MySQL Version 5.7.33-36-log
Server API fpm-fcgi
OS Linux
fsockopen On
post_max_size 25M
max_input_time 60
output_buffering 4096
max_execution_time 300
memory_limit 512M
file_uploads On
upload_max_filesize 25M



116
audizioni
Re: XOOPS 2.5.11 search user is not working

I have the same problem (http://www.audizioni.it) after upgrading to XOOPS 2.5.11:
Fatal error: Type of SmartyCompilerException::$line must be int (as in class Exception) in /web/htdocs/www.audizioni.it/home/site/class/libraries/vendor/smarty/smarty/libs/sysplugins/smartycompilerexception.php on line 8



117
Mamba
Re: XOOPS 2.5.11 search user is not working

Thanks for letting us know.

I was able to replicate it, and I'll be looking into it, hopefully soon. I'll keep you posted.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



118
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



119
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



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

  • liomj

  • Just popping in

  • Posts: 82

  • 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 ?




TopTop
« 1 ... 9 10 11 (12) 13 14 15 ... 29429 »



Login

Who's Online

254 user(s) are online (62 user(s) are browsing Support Forums)


Members: 0


Guests: 254


more...

Donat-O-Meter

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

Latest GitHub Commits