Error in Jumi pagination

A multipurpose module, plugin and component

Error in Jumi pagination

New postby apt763 » Wed Oct 19, 2011 5:44 pm

Hi,

I have installed Jumi 2.06 on Joomla 1.6. When I click on next, page number of display dropdown box in the pagination section of the Jumi component I get the following error:


Fatal error: Cannot access empty property in /home/welovech/public_html/libraries/joomla/registry/registry.php on line 289

This seems to be the code where it happens:

// Explode the registry path into an array
if ($nodes = explode('.', $path)) {
// Initialize the current node to be the registry root.
$node = $this->data;

// Traverse the registry to find the correct node for the result.
for ($i = 0, $n = count($nodes) - 1; $i < $n; $i++) {
if (!isset($node->$nodes[$i]) && ($i != $n)) {
$node->$nodes[$i] = new stdClass();
}
$node = $node->$nodes[$i];
}

Any help please?

Many thanks.
apt763
 
Posts: 1
Joined: Wed Oct 19, 2011 5:40 pm

Re: Error in Jumi pagination

New postby shavertech » Thu Oct 20, 2011 8:56 pm

Honestly I would look less at the API and more at the code you're using.

Take a look at this, it works fine for me:
Code: Select all
    <?php
   defined('_JEXEC') or die('Restricted access');
          $db =& JFactory::getDBO();
        $lim   = $mainframe->getUserStateFromRequest("$option.limit", 'limit', 14, 'int');
        $lim0   = JRequest::getVar('limitstart', 0, '', 'int');
          $db->setQuery('SELECT SQL_CALC_FOUND_ROWS * FROM ws_contacts WHERE juserid = 42',$lim0, $lim);
          $rL =& $db->loadObjectList();
          if (empty($rL)) {
              $jAp->enqueueMessage($db->getErrorMsg(), 'error');
              return;
          } else {
            $db->setQuery('SELECT FOUND_ROWS();');
              jimport('joomla.html.pagination');
           $pageNav = new JPagination( $db->loadResult(), $lim0, $lim );
              $color1 = "sectiontableentry1";
              $color2 = "sectiontableentry2";
            echo "<h3>Contacts</h3>";
              echo "<table width=\"100%\"><tr class=\"sectiontableheader\"><td>#</td><td>Name</td><td>Company</td><td>Email</td></tr>\n";
              $i = '0';
              foreach ($rL as $row) {
            $i++;
                  $rcolor = ($i % 2) ? $color1 : $color2;
                  echo "<tr class=\"{$rcolor}\"><td>{$row->conid}</td><td>{$row->name}</td><td>{$row->company}</td><td>{$row->email}</td></tr>\n";
              }
              echo "</table>";
              echo $pageNav->getPagesLinks();
          }
    ?>
shavertech
 
Posts: 41
Joined: Tue Oct 18, 2011 11:41 am

Re: Error in Jumi pagination

New postby lotbot » Sat Oct 22, 2011 6:51 am

I am having the same exact problem. The pagination issue he is having problems with is the backend. Once logged in as administrator and working within the Jumi Applications Manager, I cannot move past ID-20. Whether I click next or select from the dropdown, no works.
lotbot
 
Posts: 2
Joined: Sat Oct 22, 2011 6:46 am

Re: Error in Jumi pagination::UPDATE

New postby lotbot » Sat Oct 22, 2011 7:33 am

I at least found a work around. In your Joomla Global Configuration, set default list limit to 100, that will at least allow users with more than 20 Jumi Application instances to view the rest of their scripts.
lotbot
 
Posts: 2
Joined: Sat Oct 22, 2011 6:46 am

Re: Error in Jumi pagination

New postby shavertech » Mon Oct 24, 2011 9:13 am

Ok, I found a way to fix this.

Go to joomla/administrator/components/com_jumi/admin.jumi.php
at line 28:
Code: Select all
        //global $option;
   $option = JRequest::getCMD('option'); // use this instead of global $option
shavertech
 
Posts: 41
Joined: Tue Oct 18, 2011 11:41 am


Return to Jumi

Who is online

Users browsing this forum: No registered users and 1 guest

cron