Content and footer of magento front end is not displaying except header - magento

My front end of magento does not show any content and footer, its only showing header and navigation menu. I have checked in view.phtml as the code is there to display the page. please provide me the solution.. picking my hair since morning...

If I understand you correctly, your site is loading the header and then displaying nothing after that section. Syntax errors in PHP are the most common cause of this. Could be something as simple as whitespace. In order to diagnose I would recommend turning on template hints in Magento's backend to see what template files have or have not loaded.
From the dashboard, go to System > Configuration. Scroll down to the bottom left and you will see "Advanced". Click on "Developer" underneath that. A new screen will appear. Click on the section labeled "Debug" and uncheck "Use Website" next to "Template Path Hints". If you don't see this option, switch stores in the upper-left drop down.
Go back to your troubled web page and reload. You'll see all kinds of fun markup which leads to file paths pertaining to your site. After header.phtml loads, usually the next files to be called are breadcrumbs.phtml, topmenu.phtml or even homepage.phtml depending on your site's setup. I generally go into these template files, select all and delete the contents of each. If breadcrumbs.phtml is empty and your content isn't showing, restore it with cmd + z or ctrl + z and move on to the next file. Empty it, save it and reload the website. The goal is to narrow down that syntax error that is causing the page to break. When you have successfully found the file, your site will load correctly (minus whatever phtml file you just emptied). Be sure to have a backup or copy of your PHTML files while doing this. ;)
You could also switch back to your default template. If your content returns then you definitely know it is something with your custom template.
You might also be able to check your PHP/Apache logs for signs of trouble but I feel confident the above method will help you out. Let me know.

Related

Magento Pages Showing Same Content

I am using Magento 1.9.2. I created 3 categories active in the main navigation menu. The display mode for each category is 'static block only' and the static block each one is set to use has a unique url key, name, and content. The categories are called 'how to use', 'colors,' and 'faq.'
The problem is that when I click on one of the links on the frontend for one of those categories, the content for that category/cms block displays fine, but if I click on another link the url changes correctly but the content stays the same. For example, if I click on the how to use link first, I get the right content, but then if I click on the faq link the url changes to the faq page but the page keeps displaying the content for the how to use page.
Flushing the cache and reindexing only works for one click on one of the links. In other words, if I have the problem described above and then flush the cache/reindex the site and click on the faq link, the content changes to the faq content, but if I then click on the colors link I have the same problem.
Has anyone ever encountered this before and/or can explain why this problem is happening?
Thank you for your help.
I resolved this issue by downloading Magento 1.9.2.1 and uploading app/code/core/Mage/Cms/Block/Block.php to app/code/local/Mage/Cms/Block/Block.php.

Magento frontend hightlight translations

I am trying to make Magento highlight translations on the front end of the website and show what file the translation is in.
I'm not really sure where best to start with this and cant find anything similar.
Edit: I managed to do this by extending the Translate model, was actually very simple.
You're in luck! Magento has this built in. Go to admin, and go to;
System > Configuration
From the top menu, then;
Developer
From the left menu (its at the bottom).
Open the 'translate inline' tab, and enable for front end. Flush your cache and go back to the frontend. It will now show you the paths for labels which live in the /app/locale/[COUNTRY CODE] folders.
NOTE: Don't do this on a production site, as others will see the labels too.

Content of article not showing

I have a menu item that links to an article, I have the menu item shown in the page, but then the user clicks onto the link, it will only show the title of the article but not the content. I am not sure, what exactly is happening.
I checked the source of html, nope the content isnot there. although the content is there in the database. I ran the degbug mode, but it will give the correct article, only it wouldnt render the content.
One of the menu which was there from beginning acts as required but if I add any menuitems and article, I wont see the content.
I had this problem, this is what solved it (using Joomla 3.2):
Clicked Extensions -> Template Manager to go to 'Template Manager: Styles'
Clicked on the style being used by the pages that did not show content, for me 'yoo_master - Default'
Under the profiles Tab, in the Content section I changed 'System Output' to 'Yes'
Then page content started showing again.
If you have the Agressive cache enabled (Global Configuration > System) and the Cache plugin activated it might take a while before any changes will appear. Flush the cache (Maintainance > Clear Cache), and see if the content shows after that. Also some Template Frameworks (like T3) have their own cache layer which might prevent your content from showing up.
Otherwise there could be a problem in the template, rule that out by assigning the default Template.

Showing Custom Options on Magento Product Page

I am having a problem displaying custom options on the product page in Magento. I'm using Modern as the base for my theme, and changing themes doesn't seem to have any effect. The catalog.xml is almost the stock one for the theme.
When viewing the page, I get the message "Please specify the product's required option(s)." but nothing shows up. Additional information that have been added to the attributes show, but no product specific custom options.
Looking with developer hints, I see that /catalog/product/view/options/wrapper.phtml is not appearing on the file. Could something be missing in one of the layout .xml files?
Any idea what might be going on? Thanks!
If you have tried enabling the default template and it still doesn't work, try creating a new product with some options and see if that works. If that still doesn't work, enable the logs and pop them open and see if there are any errors being recorded during rendering. Also, make sure that they aren't just being hidden using CSS or JavaScript (try turning off the latter, for the former use Firebug to inspect the page)
The problem I had was related to this: http://sourceforge.net/projects/magmi/forums/forum/1228365/topic/4978977
The difference is that the attribute was set to container2 in my case when I need it set to container1.
Hope this helps someone else with this issue.
Compare your layout files to the default Magento layout files.

How do I edit the actual content of this TYPO3 plugin object?

I've inherited a site using TYPO3 and I don't have that much experience with it. I have a page with a left column in the layout. In that left column is an object using an "insert" plugin. On the actual page is a graphic map. I'm just wondering how to edit the actual content that this is referring to. Here is a screenshot:
Here it is a bit more zoomed in...
Based on all of the meta-data this is some kind of "Magento"/"Insert" plugin being used. Again, the question is, where do I edit/change the actual content associated with this object?
If I click on the plugin icon to the left of the "Magento Left" label and select "edit", this is what I get:
Clicking the "Plugin" tab gives me this:
HELP!
My guess (and it is a guess, since I've never used Magento before) is that you can't, at least not through the TYPO3 backend. The Magento plugin is probably creating the output itself and then piping it into the plugin directly. So to alter the output you'd need to go into the Magento plugin's source code and edit that.
I have also not used this particular extension, but you might have success in clicking the plugin icon just to the left of the "Magento Left" title. At any rate, if this is the plugin called "Magento", it seems to be simply a bridge for content from somewhere else, and the displayed content should then probably be edited somewhere else. All speculation here. Further info about the plugin might be obtained from
http://typo3.org/extensions/repository/view/fb_magento/current/.

Resources