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

  • SEARCH
  • Home
  • 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 1012081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:53:29+00:00 2026-05-16T09:53:29+00:00

I was following through on Alan Storm’s tutorial on Magento’s Model and ORM basics

  • 0

I was following through on Alan Storm’s tutorial on Magento’s Model and ORM basics and I’ve run into a bit of a problem. When I get to the portion where I load from the Model for the first time I get this error “Fatal error: Call to a member function load() on a non-object…”. I’ve reset everything already and tried again from scratch but I still get the same problem. My code looks like this:

 $params = $this->getRequest()->getParams();
 $blogpost = Mage::getModel('weblog/blogpost');
 var_dump($blogpost);
 echo("Loading the blogpost with an ID of ".$params['id']);
 $blogpost->load($params['id']);

As you can see I dumped the contents of $blogpost and it shows that it is just a boolean false. My guess is that there’s either a problem with the connection to the database or, for some reason, the code for Mage::getModel() didn’t get installed correctly.

EDIT – Adding Code

There’s so many that I just decided to pastebin them lol

app/code/local/Ahathaway/Weblog/controllers/IndexController.php

app/code/local/Ahathaway/Weblog/etc/config.xml

app/code/local/Ahathaway/Weblog/Model/Blogpost.php

app/etc/modules/Ahathaway_Weblog.xml

  • 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-16T09:53:29+00:00Added an answer on May 16, 2026 at 9:53 am

    Your Model/Blogpost.php file should actually be Model/Mysql4/Blogpost.php, and you are missing the real Model/Blogpost.php.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 499k
  • Answers 499k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer my $foo = join ',', @bar[0..$#bar-1]; will concatenate (by comma)… May 16, 2026 at 12:27 pm
  • Editorial Team
    Editorial Team added an answer Yes, in fact there are a few variations on the… May 16, 2026 at 12:27 pm
  • Editorial Team
    Editorial Team added an answer That function will return date2 if date2 <= date1. Plugging… May 16, 2026 at 12:27 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am following through this tutorial and after completing it I am getting an
I have run the following through JSLint: $(document).ready(function() { /* Add paragraph on page
Currently im faced with the following problem: I have a script that searches through
I'm following through one of the very early examples in Learning Objective-C on the
I'm learning about ASP.NET, mainly by following through a book, but also making an
I'm new to asp.net and now following through the http://nerddinnerbook.s3.amazonaws.com/Part1.htm howto. All is fine
How would it be possible to do the following: Scan through an html page
I am having the following HTML file protected through JavaScript. It works fine with
I went through this tutorial to create a MobileSubstrate addon. I could compile the
I have the following data read into R as a data frame named data_old:

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.