ivn
ivn

Reputation: 1275

Magento Manage Categories page broken

I suddenly started encountering this problem out of nowhere. My 'Manage Categories' page is broken and looks something like this. screenshot of broken 'manage categories' page

Also when I tried uploading new images for my products using 'Manage Products' section it just kept loading and never really upoaded the image. I am guessing both the issues are related.

I uploaded my design adminhtml and skin adminhtml files. I also saw on a forum that Apache server's broken/corrupt file can cause this problem, hence re uploaded the js folder too, but to no success.

Has any one got any idea on how to fix this problem, I would really appreciate it.. Thanks!

Upvotes: 2

Views: 4123

Answers (5)

Paul Matthew
Paul Matthew

Reputation: 361

hazzah, I found what went wrong with my category page.

Go to your index.php file in your magento root folder. Uncomment #ini_set('display_errors', 1); By removing the #.

After that go to your manage categories page, there should be a list of the error. Navigate to the php file that it list and if it lists a Class assume the _ are / to get to the class it requires.

Mine turned out to be /app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tree.php and /app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php were blank.

Copy them from one of your other installations of Magento(everyone else has 50 right?) or you can find it in the Magento installation zip file.

Good luck

Upvotes: 0

vignesh rajendran
vignesh rajendran

Reputation: 1

I found the answer that is your magento some js files was crashed but I can't find what files that are. my advice is in magento\app\design\adminhtml\default\default\template\catalog\category\edit.phtml. Open this file and search for this line

catch (e) {
  alert(e.message);
};

In the update function and comment this lines and refresh your magento admin page you don't get this error anymore. And also after you add a category click on save category button and click f5 for page refresh then your category will be add. This is the only way I found.

Note be careful when you add a category. You can't edit after adding.

Upvotes: -1

w3site.org
w3site.org

Reputation: 21

Seems you are using git on windows. I had same. It was crlf trouble. Git converts line breaks. Use autocrlf as false for git and reclone your repo.

Upvotes: 2

berry
berry

Reputation: 11

If there is content before the doctype header...

<div>break stuff</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

It will cause this.

Upvotes: 1

Michelangelo
Michelangelo

Reputation: 1397

the problem can be the AdminHTML template or the old compiled AdminHTML template in the cache. Try to restore the original AdminHTML template and let me know!

Regards

Upvotes: 1

Related Questions