Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Fatal error: Call to a member function


2 replies to this topic

#1 starynightskyz

  • Community Member
  • 139 posts
  • Real Name:Nancy
  • Gender:Female
  • Location:Ontario

Posted 15 March 2010, 21:17

I spent the better part of the day searching everywhere for an answer.

After using the auto installer for Extra pages-info box w/ admin 4.6.1 I had one error, looking for the page I saw that it did not exist. ,, I found it in the installation package under "files". So I slid it into the admin folder. Then I got this error.

Fatal error: Call to a member function add() on a non-object in public_html/artist/admin/extra_info_pages.php on line 39

Below is line 39 of the extra_info_pages.php



$breadcrumb->add($page_check[pages_title], tep_href_link('extra_info_pages.php?pages_id=' . $infopageid));

Any Ideas?

Nancy D

#2 germ

  • Community Member
  • 13,585 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 16 March 2010, 00:51

View Poststarynightskyz, on 15 March 2010, 21:17, said:

I spent the better part of the day searching everywhere for an answer.

After using the auto installer for Extra pages-info box w/ admin 4.6.1 I had one error, looking for the page I saw that it did not exist. ,, I found it in the installation package under "files". So I slid it into the admin folder. Then I got this error.

Fatal error: Call to a member function add() on a non-object in public_html/artist/admin/extra_info_pages.php on line 39

Below is line 39 of the extra_info_pages.php



$breadcrumb->add($page_check[pages_title], tep_href_link('extra_info_pages.php?pages_id=' . $infopageid));

Any Ideas?

Nancy D
In the contribution there are two similarly named file;

admin_extra_info_pages.php

and

extra_info_pages.php

I assume the latter is supposed to go in the /catalog folder (just a guess).

Anyhow, the code you posted is from the latter (the version I'm assuming goes in the catalog folder).

Perhaps the wrong file was uploaded to the wrong place?
:unsure:
If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#3 starynightskyz

  • Community Member
  • 139 posts
  • Real Name:Nancy
  • Gender:Female
  • Location:Ontario

Posted 16 March 2010, 02:24

View Postgerm, on 16 March 2010, 00:51, said:

In the contribution there are two similarly named file;

admin_extra_info_pages.php

and

extra_info_pages.php

I assume the latter is supposed to go in the /catalog folder (just a guess).

Anyhow, the code you posted is from the latter (the version I'm assuming goes in the catalog folder).

Perhaps the wrong file was uploaded to the wrong place?
:unsure:



In the ep_autoinstaller folder there is a second folder. "files"


in the Files folder is the following pages.

admin_english_extra_info_pages.php
admin_extra_info_pages.php
boxes_extra_info_pages.php
extra_info_pages.php
(plus two other admin_language files)

There is no directory for any, so I don't know where any should go.
If the extra_info_pages.php is not in the admin section there is a file not found error.

I was thinking I might try to install the pages.... using the begining of the page name as a directory, and then getting rid of the begining of the page name for example:

admin_english_extra_info_pages.php would get slid in catalog/admin and remove the admin_english part of the file name so all thats left in your admin folder is a page named extra_info_pages.php I hope that makes sence?:P


Did that up there ^^^^^ And got a new error. (don't be discouraged, keep reading)

Parse error: syntax error, unexpected T_STRING in /home/uneeecc/public_html/artist/admin/extra_info_pages.php on line 367

For this I found the fix.

Catalog/admin/extra_info_pages.php LOOK FOR

<td class="main"><? echo tep_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;'?><select name="page_type" size=1>

REPLACE WITH

<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;'?><select name="page_type" size=1>


After that it finally showed up in the admin section under tools.



Germ, as always, THANX for the hint, dusting off the grey matter, wouldn't have been able to figure it out otherwise.

Edited by starynightskyz, 16 March 2010, 02:36.