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 8663141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:54:40+00:00 2026-06-12T16:54:40+00:00

I have product placeholder images set in the backend at System -> Configuration ->

  • 0

I have product placeholder images set in the backend at System -> Configuration -> Catalog -> Product Image Placeholders

I can half-successfully access a product placeholder image programmatically in one of my views using the following code:

$this->getSkinUrl($this->helper('catalog/image')->init(
Mage::getModel('catalog/product'), 'small_image'));

My issue is that the above returns:

http://x.dev/skin/frontend/base/default/http://x.dev/media/catalog/product/cache/7/small_image/0dc2d03fe217f8c83829496872af24a0/placeholder/default/logo_4.jpg*

It seems like getSkinUrl does what it says and adds the skin path to the string, this is my real issue, to fix the issue I thought I would just remove getSkinUrl:

$this->helper('catalog/image')->init(
Mage::getModel('catalog/product'), 'small_image');

But the above code throws:

PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted

Can anyone see a problem with this, I seem to be doing less and it seems to be getting stuck in a loop.

Alternatively does anybody know an alternative method? I am really stuck and I really don’t want to hard code it.

Thanks

  • 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-06-12T16:54:41+00:00Added an answer on June 12, 2026 at 4:54 pm

    Many thanks to @Lucasmus for setting me on the right track.

    I ended up solving this in a bit of a hacky way, but it works.

    Mage::getModel('catalog/product')->getSmallImageUrl(200,200);
    

    That will get you the product placeholder image set in System -> Configuration -> Catalog -> Product Image Placeholders

    Edit

    As @Tyler V pointed out this is a depreciated method, if you don’t wish to use it you can use the same logic of the method it is a bit more verbose:

        (string)Mage::helper('catalog/image')->init(
            Mage::getModel('catalog/product'),
            'small_image'
        )->resize(200, 200);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In order to replace default product image in Magento, we have to replace images
I have a field 'Description' which can have product descriptions with any unicode characters.
I am working on a online shopping website, it will have product images also.
I have models Product and Category . Category can have many products. ( Product
I have the following function call inside a jsp page. jQuery(function($){ $(#product).mask(99/99/9999,{placeholder: }); });
I have Product and Category tables in database. One product can have many categories.
I have Product and Categories models. Each Product can have many Categories. Each category
I have a lot of placeholders like so: <input placeholder=Placeholder> However, in IE this
I have product item webpages located in /product/items/*.html?id=12345&ref=54321 and I would like the webpages
I have Product model and it has many categories with a has_many :through association

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.