101
audizioni
Tag module
  • 2023/11/21 16:13

  • audizioni

  • Just popping in

  • Posts: 17

  • Since: 2009/1/11


I'm testing the TAG module with the RC3 version of Xoops. The administration side seems to be working; the user side from these errors:

Notice: Expression #5 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'Sql1493065_5.l.tag_modid' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by in file /modules/tag/class/TagHandler.php line 350
Error: TypeError: array_column() expects parameter 1 to be array, null given in file /modules/tag/index.php line 52

XOOPS Version XOOPS 2.5.11-RC3
PHP Version 7.4.33
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 120
memory_limit 512M
file_uploads On
upload_max_filesize 25M




102
Mamba
Re: oledrion
  • 2023/11/15 20:28

  • Mamba

  • Moderator

  • Posts: 11377

  • Since: 2004/4/23


Somebody in France is working on some really cool improvements.

You can see an example of what's coming here:
https://www.chalut-greenservice.ch/modules/oledrion/

I don't know when they will submit their updates to GitHub, but it looks very promising!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



103
zivXP
Re: Migrate from Wordpress
  • 2023/11/14 20:39

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


Quote:

Now, i remebered Xoops and am wondering is there a chance to migrate Wordpress sites to Xoops?


It seems to me that there are completely different database structures. If only manually transfer the data.



104
Mamba
Re: Migrate from Wordpress
  • 2023/11/13 19:15

  • Mamba

  • Moderator

  • Posts: 11377

  • Since: 2004/4/23


Hi Oliver,
All migrations from one CMS to another can be challenging and require good planning, but are always doable.

You can develop all kind of websites with XOOPS, and since you're from Austria, you can talk to Goffy, who is also from there, and you can see the catalog of websites he developed with XOOPS here: https://wedega.com/

One that is similar to what you have is here: https://fxgruber.at/

You can also check out what's possible with XOOPS by looking at some of the themes created recently by Heyula:
https://xoops.org/modules/themes/


Resized Image
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



105
computermobi
Migrate from Wordpress

Hi friends.
Short explanation:
Years ago, as you can see in my first entry here in 2010) i started with my website building carrier with Xoops. As i found more themes and more easy handling in wordpress i changed to this CMS. )I also had a short time on Joomla)
Now, i remebered Xoops and am wondering is there a chance to migrate Wordpress sites to Xoops?
Second question:
Is there an easy way to build a directory site like this: https://hotels-mit-pool.com (What is also my site)?

Thank you very much for your time!



106
cadch
Re: Error: Call to undefined method stdClass::getVar() in file /class/tree.php line 66
  • 2023/11/11 10:56

  • cadch

  • Just popping in

  • Posts: 48

  • Since: 2007/12/17


I'm going to study now~
Thank you~



107
Mamba
Re: Error: Call to undefined method stdClass::getVar() in file /class/tree.php line 66
  • 2023/11/11 1:35

  • Mamba

  • Moderator

  • Posts: 11377

  • Since: 2004/4/23


If you have a table "tree" with your data, you can use XoopsObjectHandler::getObjects() with XoopsPersistableObjectHandler and XoopsObjectCriteria to fetch the data. Something like this:
// Assume you have TreeObj (XoopsObject) and TreeHandler (XoopsPersistableObjectHandler)
$treeHandler xoops_getModuleHandler('tree''your_module'); // Replace 'your_module' with your actual module name
$criteria = new CriteriaCompo();

// Fetch data from the 'tree' table
$treeObjects $treeHandler->getObjects($criteria);

// Create XoopsObjectTree
$tree = new XoopsObjectTree($treeObjects'cid''pid'null);

// Generate the HTML dropdown options
$options $tree->makeSelectElement('pid''name''--''-');

// Create the ';

echo 
$selectElement;
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



108
cadch
Re: Error: Call to undefined method stdClass::getVar() in file /class/tree.php line 66
  • 2023/11/9 14:04

  • cadch

  • Just popping in

  • Posts: 48

  • Since: 2007/12/17


Thank Mamba.But I don't know how to use XoopsObject,Can you give me demo.
If My database TABLE name 'tree' content
cid  pid  name
1     0     aa
2     1     bb
3     2     cc

How to use XoopsObjectTree achieve this result
<select name="pid">
<
option value="0">----option>
<
option value="1">aaoption>
<
option value="2">-bboption>
<
option value="3">---ccoption>
select>

Sorry for wasting your time.



109
Mamba
Re: Error: Call to undefined method stdClass::getVar() in file /class/tree.php line 66
  • 2023/11/8 23:01

  • Mamba

  • Moderator

  • Posts: 11377

  • Since: 2004/4/23


The error you're encountering is due to the fact that the XoopsObjectTree class is expecting the objects in your tree structure to be XoopsObjects hat have a getVar() method, but in your case, you have an array of stdClass objects which do not have this method.

So you should use XoopsObject in your code.

The other way to fix this issue, you can create a custom class that extends the stdClass and implements the getVar() method to act as a bridge between your data and the XoopsObjectTree. Here's an example of how you can do this:

class CustomObject extends stdClass {
    public function 
getVar($var$format 's') {
        
// Implement the getVar method as needed for your data
        // You can fetch the value of the property based on the $var parameter
        // and apply any formatting if required.
        // For example:
        
switch ($var) {
            case 
'cid':
                return 
$this->cid;
            case 
'pid':
                return 
$this->pid;
            
// Add more cases as needed for other properties
            
default:
                return 
null// Return null for unknown properties
        
}
    }
}

// Create an array of CustomObject instances
$customObjects = array();

// Populate the $customObjects array with your data (stdClass objects)
// For example:
$stdObject = new stdClass();
$stdObject->cid 1;
$stdObject->pid 0;
// Add other properties as needed

$customObject = new CustomObject();
$customObject->cid $stdObject->cid;
$customObject->pid $stdObject->pid;
// Add other properties and implement getVar for CustomObject as needed

$customObjects[] = $customObject;

// Create the XoopsObjectTree using CustomObject instances
$tree = new XoopsObjectTree($customObjects'cid''pid'null);


If there are other missing elements, then you should add them to your CustomObject as well.

But if there are a lot of them, you would be better off by simply using XoopsObject.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



110
cadch
Error: Call to undefined method stdClass::getVar() in file /class/tree.php line 66
  • 2023/11/8 15:42

  • cadch

  • Just popping in

  • Posts: 48

  • Since: 2007/12/17


My object
Array ( [0] => stdClass Object ( [cid] => [pid] => [name] => name [icon] => bi-folder-plus [weight] => 10 [update_date] => 1514736000 [cid_type] => _top [description] => description [picture] => 1.jpg [status_code] => [user_ip] => 127.0.0.1 [user_id] => ) )

my code
$tree = new XoopsObjectTree($object'cid''pid'null);

have Error: Call to undefined method stdClass::getVar() in file /class/tree.php line 66
How to fix it?




TopTop
« 1 ... 8 9 10 (11) 12 13 14 ... 29425 »



Login

Who's Online

185 user(s) are online (149 user(s) are browsing Support Forums)


Members: 0


Guests: 185


more...

Donat-O-Meter

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

Latest GitHub Commits