<div class="wrap-left-right"> <div class="wrap-left"> <div class="wrap"><form action="" method="post" id="product_addtocart_form" Fatal error: Call to a member function getOptions() on a non-object in /chroot/home/***/***/html/app/design/frontend/***/default/template/catalog/category/view.phtml on line 40
This is the end of the rendered html when viewing a category page. No products or footer are displayed. Any help would be greatly appreciated. Sometimes it throws other php warnings in the code but most times it only shows this one.
view.phtml line 40
<form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
Other random errors associated that sometimes appears with it:
Warning: include(Mage.php): failed to open stream: No such file or directory in /chroot/home/***/***/html/lib/Varien/Autoload.php on line 93 Warning: include(Mage.php): failed to open stream: No such file or directory in /chroot/home/***/***/html/lib/Varien/Autoload.php on line 93 Warning: include(): Failed opening 'Mage.php' for inclusion (include_path='/chroot/home/***/***/html/app/code/local:/chroot/home/***/***/html/app/code/community:/chroot/home/***/***/html/app/code/core:/chroot/home/***/***/html/lib:.:/usr/share/pear:/usr/share/php') in /chroot/home/***/***/html/lib/Varien/Autoload.php on line 93 Fatal error: Class 'Mage' not found in /chroot/home/***/***/html/app/code/core/Mage/Core/functions.php on line 244 Warning: include(Mage.php): failed to open stream: No such file or directory in /chroot/home/***/***/html/lib/Varien/Autoload.php on line 93 Warning: include(Mage.php): failed to open stream: No such file or directory in /chroot/home/***/***/html/lib/Varien/Autoload.php on line 93 Warning: include(): Failed opening 'Mage.php' for inclusion (include_path='/chroot/home/***/***/html/app/code/local:/chroot/home/***/***/html/app/code/community:/chroot/home/***/***/html/app/code/core:/chroot/home/***/***/html/lib:.:/usr/share/pear:/usr/share/php') in /chroot/home/***/***/html/lib/Varien/Autoload.php on line 93 Fatal error: Class 'Mage' not found in /chroot/home/***/***/html/app/code/core/Mage/Core/Model/Resource/Session.php on line 108
Ruled out permissions and cache as possibilities, it's not those.
Here is an entire view of view.phml
https://gist.github.com/aedelgod/a41c6124a7f1974e582e
Sorry for double post. Last time I did an edit my thread disappeared to be "reviewed" so I don't trust it anymore.
So no ideas?