Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6255081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:17:55+00:00 2026-05-24T14:17:55+00:00

I have a Joomla 1.6 installation that operates on two databases: joomla’s database and

  • 0

I have a Joomla 1.6 installation that operates on two databases: joomla’s database and domain-specific database, both on the same MySQL server. Some entities in the domain-specific database keeps their ownership links, i.e. stores user_id of Joomla user that created it. Some of the links are inconsistent and points to non-existent Joomla user, it is normal from domain model point of view. The problem is when I try to get user name it shows

JUser::_load:Unable to load user with id 1

Since it is OK to have such links, I need to suppress this messages. The exact code that retrieves user name is just the following:

$user_id = $ticket->getUserId();
$user =& JFactory::getUser($user_id);

Wrappig this code into ob_start() ... ob_end_clean() does not help.
Of course I could do it by hacking Joomla’s internals, but is there any cleaner solution? I’m new to Joomla, so maybe there is some option in admin panel to suppress those messages?

UPDATE: Setting display_errors=>off, html_errors=>off, display_startup_errors=>off noes not help. Using PHP error suppression with @ as $user =@ JFactory::getUser($user_id) does not help too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T14:17:56+00:00Added an answer on May 24, 2026 at 2:17 pm

    Why don’t you simply do pre-check if the user exists and then run your code:

    $table   = JUser::getTable();
    $user_id = intval( $ticket->getUserId() );
    
    if($table->load( $user_id ))
    {
             $user =& JFactory::getUser($user_id);
             // now you are sure user exists
    } else {
             // user doesn't exists
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a crashed/hacked Joomla installation (Files and Folders only) Database has NOT been
I have a Joomla installation with a contacts form. Specifically, there are two contacts
We have developed a stand-alone script on the same server as our Joomla 1.5
I have a (Joomla) site that is not currently pointing to a domain, but
I currently have a Joomla 1.5 installation, as well as another website. They both
I have a Joomla installation with search-friendly-urls at the root level of the domain,
I am a beginner to Joomla, I have installed Joomla 1.5 in my server
In Joomla 1.5 I would like to have a startpage (that has its own
I am a beginner and working on joomla 1.5. I have two question :
I have Joomla 1.5.9 running with php 5.2.8, mySQL 5.1.31 on IIS7 on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.