The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: Fri Jun 08, 2012 5:04 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jun 08, 2012 4:53 pm
Posts: 5
This is the error I get when trying to add, edit, or delete a menu item.

Fatal error: Class 'JTableMenu' not found in /home/content/79/9404379/html/administrator/components/com_menus/tables/menu.php on line 20

I have searched the forums and google for any help but I've had no luck. I recently had to change my host to GoDaddy and backed up my site with Akeeba. The site worked fine on my local server, but on the linux server at GoDaddy I'm finding errors all over. I also have a blank user management page and plugin manager.

The code on tables/menu.php says --

<?php
/**
* @package Joomla.Administrator
* @subpackage com_menus
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

// No direct access
defined('_JEXEC') or die;

// Import JTableMenu
JLoader::register('JTableMenu', 'JPATH_PLATFORM' . '/joomla/database/table/menu.php');

/**
* @package Joomla.Administrator
* @subpackage com_menus
*/
class MenusTableMenu extends JTableMenu
{
/**
* Method to delete a node and, optionally, its child nodes from the table.
*
* @param integer $pk The primary key of the node to delete.
* @param boolean $children True to delete child nodes, false to move them up a level.
*
* @return boolean True on success.
*
* @see http://docs.joomla.org/JTableNested/delete
* @since 2.5
*/
public function delete($pk = null, $children = false)
{
return parent::delete($pk, $children);
}
}


Top
 Profile  
 
PostPosted: Fri Jun 08, 2012 11:03 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Thu Feb 15, 2007 5:48 am
Posts: 3344
Location: Sydney, Australia
It sounds as if some of the files have not been copied across to your new server. The class JTableMenu is defined in libraries/joomla/database/tables/menu.php. You can get that file from the installation archive of your version of Joomla 1.5 and copy that to the server, and this error should disappear.

If you have other error messages, it would help to copy all the files, assuming that none of the core files have been modified.

_________________
toivo
my first programs were assembled and run in 16KB :)
http://archive.computerhistory.org/resources/text/GE/GE.GE-115SystemSoftware.1967.102646096.pdf#zoom=100


Top
 Profile  
 
PostPosted: Sat Jun 09, 2012 9:14 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jun 08, 2012 4:53 pm
Posts: 5
I've tried reinstalling folders and even the whole site multiple times but I still get the same error. :(


Top
 Profile  
 
PostPosted: Sat Jun 09, 2012 9:30 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Thu Feb 15, 2007 5:48 am
Posts: 3344
Location: Sydney, Australia
Does the file libraries/joomla/database/tables/menu.php exist?

You mentioned that other errors are also reported - which ones?

_________________
toivo
my first programs were assembled and run in 16KB :)
http://archive.computerhistory.org/resources/text/GE/GE.GE-115SystemSoftware.1967.102646096.pdf#zoom=100


Top
 Profile  
 
PostPosted: Sat Jun 09, 2012 10:40 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jun 08, 2012 4:53 pm
Posts: 5
Yes it exists.

database/table/menu.php states:

<?php
/**
* @version $Id: menu.php 14401 2010-01-26 14:10:00Z louis $
* @package Joomla.Framework
* @subpackage Table
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();

/**
* Menu table
*
* @package Joomla.Framework
* @subpackage Table
* @since 1.0
*/
class JTableMenu extends JTable
{
/** @var int Primary key */
var $id = null;
/** @var string */
var $menutype = null;
/** @var string */
var $name = null;
/** @var string */
var $alias = null;
/** @var string */
var $link = null;
/** @var int */
var $type = null;
/** @var int */
var $published = null;
/** @var int */
var $componentid = null;
/** @var int */
var $parent = null;
/** @var int */
var $sublevel = null;
/** @var int */
var $ordering = null;
/** @var boolean */
var $checked_out = 0;
/** @var datetime */
var $checked_out_time = 0;
/** @var boolean */
var $pollid = null;
/** @var string */
var $browserNav = null;
/** @var int */
var $access = null;
/** @var int */
var $utaccess = null;
/** @var string */
var $params = null;
/** @var int Pre-order tree traversal - left value */
var $lft = null;
/** @var int Pre-order tree traversal - right value */
var $rgt = null;
/** @var int */
var $home = null;

/**
* Constructor
*
* @access protected
* @param database A database connector object
*/
function __construct( &$db ) {
parent::__construct( '#__menu', 'id', $db );
}

/**
* Overloaded check function
*
* @access public
* @return boolean
* @see JTable::check
* @since 1.5
*/
function check()
{
if(empty($this->alias)) {
$this->alias = $this->name;
}
$this->alias = JFilterOutput::stringURLSafe($this->alias);
if(trim(str_replace('-','',$this->alias)) == '') {
$datenow =& JFactory::getDate();
$this->alias = $datenow->toFormat("%Y-%m-%d-%H-%M-%S");
}

return true;
}

/**
* Overloaded bind function
*
* @access public
* @param array $hash named array
* @return null|string null is operation was satisfactory, otherwise returns an error
* @see JTable:bind
* @since 1.5
*/

function bind($array, $ignore = '')
{
if (is_array( $array['params'] ))
{
$registry = new JRegistry();
$registry->loadArray($array['params']);
$array['params'] = $registry->toString();
}

return parent::bind($array, $ignore);
}
}
?>

The JTableMenu error is the only one I'm seeing on that page.

The other pages I'm having trouble with are user manager and plugin manager. Both of these are showing blank which I know is an error in itself.


Top
 Profile  
 
PostPosted: Sat Jun 09, 2012 11:07 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Thu Feb 15, 2007 5:48 am
Posts: 3344
Location: Sydney, Australia
Do you have access to the PHP error log?

Are you using the latest 1.5 version. 1.5.26?

_________________
toivo
my first programs were assembled and run in 16KB :)
http://archive.computerhistory.org/resources/text/GE/GE.GE-115SystemSoftware.1967.102646096.pdf#zoom=100


Top
 Profile  
 
PostPosted: Sat Jun 09, 2012 11:19 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jun 08, 2012 4:53 pm
Posts: 5
Where would I find the log?

Yes I am using 1.5.26.


Top
 Profile  
 
PostPosted: Sat Jun 09, 2012 11:38 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Thu Feb 15, 2007 5:48 am
Posts: 3344
Location: Sydney, Australia
The PHP settings in the System Info at the back end give you the location.

Please use the Forum Post Assistant to give relevant information about your installation:
viewtopic.php?f=621&t=582860

_________________
toivo
my first programs were assembled and run in 16KB :)
http://archive.computerhistory.org/resources/text/GE/GE.GE-115SystemSoftware.1967.102646096.pdf#zoom=100


Top
 Profile  
 
PostPosted: Sun Jun 10, 2012 12:26 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jun 08, 2012 4:53 pm
Posts: 5
Forum Post Assistant (v1.2.1) : 9th June 2012 wrote:
Basic Environment :: wrote:
Joomla! Instance :: Joomla! 1.5.26-Stable (senu takaa ama busani) 27-March-2012
Joomla! Platform :: Joomla Platform 11.4.0-Stable (Brian Kernighan) 03-Jan-2012
Joomla! Configured :: Yes | Read-Only (444) | Owner: 9404379 (uid: /gid: ) | Group: 100450 (gid: ) | Valid For: 1.5
Configuration Options :: Offline: 0 | SEF: 0 | SEF Suffix: 0 | SEF ReWrite: 0 | .htaccess/web.config: Yes | GZip: 0 | Cache: 0 | FTP Layer: 0 | SSL: 0 | Error Reporting: 30719 | Site Debug: 0 | Language Debug: 0 | Database Credentials Present: Yes

Host Configuration :: OS: Linux | OS Version: 2.6.18-238.19.1.el5PAE | Technology: i686 | Web Server: Apache | Encoding: gzip, deflate | Doc Root: /var/chroot/home/content/79/9404379/html | System TMP Writable: Yes

PHP Configuration :: Version: 5.3.6 | PHP API: cgi-fcgi | Session Path Writable: Unknown | Display Errors: 1 | Error Reporting: 22519 | Log Errors To: | Last Known Error: | Register Globals: 0 | Magic Quotes: 1 | Safe Mode: 0 | Open Base: | Uploads: 1 | Max. Upload Size: 2M | Max. POST Size: 8M | Max. Input Time: -1 | Max. Execution Time: 60 | Memory Limit: 256

MySQL Configuration :: Version: 5.0.92-log (Client:5.0.77) | Host: --protected-- (--protected--) | Collation: utf8_general_ci (Character Set: utf8) | Database Size: 3.90 MiB | #of _FPA_TABLE: 106
Detailed Environment :: wrote:
PHP Extensions :: Core (5.3.6) | date (5.3.6) | ereg () | libxml () | openssl () | pcre () | sqlite3 (0.7-dev) | zlib (1.1) | bcmath () | calendar () | ctype () | curl () | dba () | dom (20031129) | hash (1.0) | fileinfo (1.0.5-dev) | filter (0.11.0) | ftp () | gd () | gettext () | SPL (0.2) | iconv () | json (1.2.1) | mbstring () | mcrypt () | mysql (1.0) | mysqli (0.1) | session () | PDO (1.0.4dev) | pdo_mysql (1.0.2) | pdo_sqlite (1.0.1) | standard (5.3.6) | pspell () | Reflection ($Revision: 307971 $) | Phar (2.0.1) | SimpleXML (0.1) | soap () | SQLite (2.0-dev) | exif (1.4 $Id: exif.c 308362 2011-02-15 14:02:26Z pajoye $) | tokenizer (0.1) | wddx () | xml () | xmlreader (0.1) | xmlwriter (0.1) | xsl (0.1) | zip (1.9.1) | cgi-fcgi () | mhash () | Zend Engine (2.3.0) |
Potential Missing Extensions :: suhosin |

Switch User Environment (Experimental) :: PHP CGI: Yes | Server SU: Yes | PHP SU: Yes | Custom SU (LiteSpeed/Cloud/Grid): No
Potential Ownership Issues: Maybe
Folder Permissions :: wrote:
Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (755) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) |

Elevated Permissions (First 10) :: None
Database Information :: wrote:
Database _FPA_STATS :: Uptime: 65713 | Threads: 3 | Questions: 1693968 | Slow queries: 0 | Opens: 6862 | Flush tables: 1 | Open tables: 6152 | Queries per second avg: 25.778 |
Extensions Discovered :: wrote:
Components :: SITE :: MailTo (1.5.0) | Wrapper (1.5.0) | User (1.5.0) | os_authnet (1.0) | os_eway (1.0) | os_offline (1.0) | os_paypal (1.0) | os_worldpay (1.0) |
Components :: ADMIN :: com_admin (2.5.0) | Banners (1.5.0) | Cache Manager (1.5.0) | com_categories (2.5.0) | com_checkin (2.5.0) | Configuration Manager (1.5.0) | Contact Items (1.0.0) | Content Page (1.5.0) | Control Panel (1.5.0) | com_finder (2.5.0) | Installation Manager (1.5.0) | com_joomlaupdate (2.5.0) | Language Manager (1.5.0) | com_login (2.5.0) | Media Manager (1.5.0) | Menus Manager (1.5.0) | Messaging (1.5.0) | Module Manager (1.5.0) | Newsfeeds (1.5.0) | Plugin Manager (1.5.0) | com_redirect (2.5.0) | Search (1.5.0) | Template Manager (1.5.0) | User Manager (1.5.0) | Weblinks (1.5.0) | Widgetkit (1.0.0 BETA 15) | Trash (1.0.0) | Polls (1.5.0) | Mass Mail (1.5.0) | Frontpage (1.5.0) | export_content (2.0.0) | import1.5_data (2.0) | Akeeba (3.3.13) | Event Booking (1.4.4) |

Modules :: SITE :: mod_articles_archive (2.5.0) | mod_articles_categories (2.5.0) | mod_articles_category (2.5.0) | mod_articles_latest (2.5.0) | mod_articles_news (2.5.0) | mod_articles_popular (2.5.0) | Banner (1.5.0) | Breadcrumbs (1.5.0) | Custom HTML (1.5.0) | Feed Display (1.5.0) | mod_finder (2.5.0) | Footer (1.5.0) | mod_languages (2.5.0) | Login (1.5.0) | mod_menu (2.5.0) | Random Image (1.5.0) | Related Items (1.0.0) | Search (1.0.0) | Statistics (1.5.0) | Syndicate (1.5.0) | mod_users_latest (2.5.0) | mod_weblinks (2.5.0) | Who\'s Online (1.0.0) | Wrapper (1.0.0) | Widgetkit Twitter (1.0.0) | Widgetkit (1.0.0) | Sections (1.5.0) | Poll (1.5.0) | Newsflash (1.5.0) | Most Read Content (1.5.0) | Menu (1.5.0) | Latest News (1.5.0) | Facebook FanBox (1.1.2) | Archived Content (1.5.0) |
Modules :: ADMIN :: Custom HTML (1.5.0) | Feed Display (1.5.0) | Latest News (1.0.0) | Logged in Users (1.0.0) | Login Form (1.0.0) | Admin Menu (1.0.0) | mod_multilangstatus (2.5.0) | Popular Items (1.0.0) | Quick Icons (1.0.0) | User Status (1.5.0) | Admin Submenu (1.0.0) | Title (1.0.0) | Toolbar (1.0.0) | mod_version (2.5.0) | Unread Items (1.0.0) | Items Stats (1.0.0) | Online Users (1.0.0) | Footer (1.0.0) | Akeeba Backup Notification Mod (3.3.13) |

Plugins :: SITE :: Authentication - Example (1.5) | Authentication - GMail (1.5) | plg_authentication_gmail (2.5.0) | Authentication - Joomla (1.5) | Authentication - LDAP (1.5) | Authentication - OpenID (1.5) | plg_authentication_joomla (2.5.0) | plg_authentication_ldap (2.5.0) | Content - AllVideos Reloaded (1.2.6) | Content - Email Cloaking (1.5) | Content - Example (1.0) | Content - Code Highlighter (Ge (1.5) | plg_content_emailcloak (2.5.0) | Content - Load Modules (1.5) | Content - Pagebreak (1.5) | Content - Page Navigation (1.5) | Content - Vote (1.5) | YOOgallery (1.5.1) | YOOtooltip (1.5.5) | plg_content_finder (2.5.0) | plg_content_geshi (2.5.0) | plg_content_joomla (2.5.0) | plg_content_loadmodule (2.5.0) | plg_content_pagebreak (2.5.0) | plg_content_pagenavigation (2.5.0) | plg_content_vote (2.5.0) | Content - Widgetkit (1.0.0) | DOCman Standard Buttons (1.4.0rc3) | plg_editors_codemirror (1.0) | Advanced Code Editor (1.5.3) | Advanced Link (1.5.1) | Joomla! Links for Advanced Lin (1.2.1) | File Browser (1.5.0 Stable) | Paste (1.5.0) | Image Manager (1.5.2) | Object Support (1.5.1) | Paste (1.5.3) | SpellChecker (2.0.0) | Editor - JCE 154 (154) | plg_editors_tinymce (3.4.9) | Editor - TinyMCE 3 (3.2.6) | Editor - XStandard Lite for Jo (1.0) | Button - AllVideos Reloaded (1.2.6) | Button - Image (1.0.0) | plg_editors-xtd_article (2.5.0) | Button - Pagebreak (1.5) | Button - Readmore (1.5) | plg_editors-xtd_image (2.5.0) | plg_editors-xtd_pagebreak (2.5.0) | plg_editors-xtd_readmore (2.5.0) | plg_captcha_recaptcha (2.5.0) | Search - Categories (1.5) | Search - Contacts (1.5) | Search - Content (1.5) | plg_search_categories (2.5.0) | Search - Newsfeeds (1.5) | Search - Sections (1.5) | Search - Weblinks (1.5) | plg_search_contacts (2.5.0) | plg_search_content (2.5.0) | plg_search_newsfeeds (2.5.0) | plg_search_weblinks (2.5.0) | System - AllVideos Reloaded (1.2.6) | System - Backlinks (1.5) | System - BigoCaptcha (1.2) | System - Cache (1.5) | System - Debug (1.5) | HP Router (0.2) | plg_system_cache (2.5.0) | System - Legacy (1.5) | System - Log (1.5) | System - Redirect Failed Login (1.51) | System - Remember Me (1.5) | System - securityimages (5.1.2) | System - SEF (1.5) | SEF Title Prefix and Suffix (2.0) | YOOeffects (1.5.1) | plg_system_debug (2.5.0) | plg_system_highlight (2.5.0) | plg_system_languagecode (2.5.0) | plg_system_languagefilter (2.5.0) | plg_system_log (2.5.0) | plg_system_logout (2.5.0) | plg_system_p3p (2.5.0) | plg_system_redirect (2.5.0) | plg_system_remember (2.5.0) | plg_system_sef (2.5.0) | Akeeba Backup Lazy Scheduling (3.3) | System - Widgetkit (1.0.0) | System - Widgetkit ZOO (1.0.0) | System - Mootools Upgrade (1.5) | User - Example (1.0) | plg_user_contactcreator (2.5.0) | User - Joomla! (1.5) | plg_user_joomla (2.5.0) | plg_user_profile (2.5.0) | XML-RPC - Blogger API (1.0) | XML-RPC - Joomla API (1.0) | plg_extension_joomla (2.5.0) | plg_finder_categories (2.5.0) | plg_finder_contacts (2.5.0) | plg_finder_content (2.5.0) | plg_finder_newsfeeds (2.5.0) | plg_finder_weblinks (2.5.0) | plg_quickicon_extensionupdate (2.5.0) | plg_quickicon_joomlaupdate (2.5.0) |
Templates Discovered :: wrote:
Templates :: SITE :: atomic (2.5.0) | beez5 (2.5.0) | beez_20 (2.5.0) | yoo_downtown (1.0.2) | rhuk_milkyway (1.0.2) | JA_Purity (1.2.0) | beez (1.0.0) |
Templates :: ADMIN :: bluestork (2.5.0) | hathor (2.5.0) | Khepri (1.0) | APLite (0.9.3) |


Top
 Profile  
 
PostPosted: Sun Jun 10, 2012 8:44 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Thu Feb 15, 2007 5:48 am
Posts: 3344
Location: Sydney, Australia
According to the Forum Post Assistant, you have elements of both Joomla 2.5 and Joomla 1.5 in the same folder, which will produce unpredictable results. In a clean 1.5.26 site the text under Joomla Platfrom should have "N/A", not "Joomla Platform 11.4.0".

_________________
toivo
my first programs were assembled and run in 16KB :)
http://archive.computerhistory.org/resources/text/GE/GE.GE-115SystemSoftware.1967.102646096.pdf#zoom=100


Top
 Profile  
 
PostPosted: Fri Nov 16, 2012 6:54 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Nov 16, 2012 6:43 pm
Posts: 1
Hi,

My problem is identical to that of meganh2004. How did you ultimately resolve it?

I am very new to Joomla. I thought I would just reply to this thread rather than open an entirely new one, since that would be repetitive.

Any help appreciated!


Top
 Profile  
 
PostPosted: Sat Nov 17, 2012 11:11 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Thu Feb 15, 2007 5:48 am
Posts: 3344
Location: Sydney, Australia
Do you also have a mixture of Joomla 1.5 and 2.5 in the same folder? That will not work. Delete everything and install the latest version of 2.5.

_________________
toivo
my first programs were assembled and run in 16KB :)
http://archive.computerhistory.org/resources/text/GE/GE.GE-115SystemSoftware.1967.102646096.pdf#zoom=100


Top
 Profile  
 
PostPosted: Tue Feb 19, 2013 5:45 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Sep 08, 2010 7:22 pm
Posts: 23
I was having the same error, as well as a few other errors, and I was able to fix it by removing the "tables" folder from: administrator/components/com_menus/. I looked at the PHP Error Logs in a text file and I Google the problem, couldn't find a solution, so I tried removing the "tables" folder and it worked. The same method worked for the other problems, for example, I looked at the PHP error log and found out that I had to delete the "models" folder from com_users in order to be able to access the users section from the backend. I hope this can help someone else who's experiencing the same issues.


Top
 Profile  
 
PostPosted: Tue Feb 19, 2013 7:34 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Thu Feb 15, 2007 5:48 am
Posts: 3344
Location: Sydney, Australia
@fddlss: are you also running Joomla 1.5? Do you know how the tables folder was created because it is not part of 1.5 in administrator/components/com_menus, whereas the folder models is part of administrator/components/com_users.

_________________
toivo
my first programs were assembled and run in 16KB :)
http://archive.computerhistory.org/resources/text/GE/GE.GE-115SystemSoftware.1967.102646096.pdf#zoom=100


Top
 Profile  
 
PostPosted: Tue Feb 19, 2013 8:24 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Sep 08, 2010 7:22 pm
Posts: 23
toivo wrote:
@fddlss: are you also running Joomla 1.5? Do you know how the tables folder was created because it is not part of 1.5 in administrator/components/com_menus, whereas the folder models is part of administrator/components/com_users.


I'm running Joomla 1.5.26, to be honest I have no idea how those folders got there, because I just started working on this Website a few days ago and it was originally made by someone else.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 



Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group