PDA

View Full Version : Notice: Undefined offset: 0


markl1420
01-25-2007, 09:09 PM
Hello!

I am using the Fabrik mambot to display a simple form on my frontpage. Once I added a database join field, linking userid from the joomla database to my new table I started getting the following messages on the frontpage:


Notice: Undefined offset: 0 in /var/www/vhosts/xxxxx/httpsdocs/components/com_fabrik/fabrik.class.php on line 762

Notice: Trying to get property of non-object in /var/www/vhosts/xxxxx/httpsdocs/components/com_fabrik/fabrik.class.php on line 762

Notice: Undefined offset: 0 in /var/www/vhosts/xxxxx/httpsdocs/components/com_fabrik/fabrik.class.php on line 763

Notice: Trying to get property of non-object in /var/www/vhosts/xxxxx/httpsdocs/components/com_fabrik/fabrik.class.php on line 763

Notice: Undefined offset: 0 in /var/www/vhosts/xxxxx/httpsdocs/components/com_fabrik/fabrik.class.php on line 808

Notice: Trying to get property of non-object in /var/www/vhosts/xxxxx/httpsdocs/components/com_fabrik/fabrik.class.php on line 808


Note: The form WORKS and inserts the data just fine. These look like PHP informational messages.

My system is:

Fedora FC5
Joomla 1.0.12
MySQL 5.0.27-1.fc5
PHP 5.1.6-1.2

Any help would be appreciated!

Thank You

Mark

rob
01-26-2007, 08:24 AM
Hi Mark

Do you get these errors when publishing the form to a menu item?
Could you check that your database join element is set to "simple" rather than "advanced" as well?

Cheers
Rob

markl1420
01-26-2007, 03:46 PM
Hi Rob,

Yes the same messages come up when it is a menu item. They also appear on the backend is I select "Add Record"

The database join is an advanced join. It conjuncts lastname, firstname and inserts userid into the new database field.

Mark

rob
01-27-2007, 01:11 PM
Hi Mark

Could you give me access to your site's admin at all please? Alternatively could you create a package of the effected tables and email that to me. (rob at pollen-8 dot co dot uk)

To create a package select components->fabrik->tables
select the tables you want to export and press export from the top right menu
give the package a lable
tick all the boxes
press export
that will get you to download a package from which I can then recreate your setup

Cheers
Rob

aud2093
02-07-2007, 07:22 PM
Hey Guys, I was wondering what the resolution to this issue is? I am encountering a similar error and have not yet been able to publish a menu link to the "All Jobs" list from the tutorial. The link is there, I just get this error when adding a row to the table via the form:

Notice: Undefined property: _err
in /vservers/xxxx/htdocs/components/com_fabrik/fabrik.class.php on line 953

The initial display shows me the following three column headings with no data, even though I've added several rows to the table:

URL OWNER ACTIVE

aud2093
02-07-2007, 08:14 PM
FIXED IT -- made a change to fabrik.class.php in htdocs/components/com_fabrik starting at line 959:

//change jmp070207 - change _err to _error
if ( $this->_error != "" ){
echo $this->_error;
//jmp070207 ends.
exit;
}

Hope this will help someone else. Now on to the issue of bogus column headings displaying instead of table data...

aud2093
02-07-2007, 10:38 PM
Ha! I'm gettin' there...

I figured out that I had the standard-groupby.html template in use for a non-group-by page. The table output is displaying now! Yeeehaahhhh!

Excellent system, Rob & Co.!!

rob
02-08-2007, 07:28 AM
Ah cool - glad you figured it out

Cheers
Rob