Fatal Error getFile

arbeloa

New member
Hi,

Local Test.
Magento 1.8.1.0
WebRotate360_Catalog-3.5.4.

Your extension works perfectly but on product page an error message appears :

Fatal error: Call to a member function getFile() on a non-object in
C:\wamp\www\app\design\frontend\default\default\template\webrotate360\catalog\product\view\media.phtml on line 86.

Thanks in advance for your help

Regards
 

WebSupport

Active member
Hi there,

Please try removing all gallery images in Admin from for the product that gives you the error, re-test and then re-add the images one by one to see if it fixes it as I think the line 86 can give an error like this only if there's something wrong with one of your gallery images (deleted file from you hard-drive that is still referenced in Magento db and similar).
 

arbeloa

New member
No results.

When I create a product without attribute the result is identical.

error screen below
 

Attachments

  • error.jpg
    error.jpg
    202.9 KB · Views: 6,033

WebSupport

Active member
Hmm.. this is strange then. Can you please try to assign the test shoe 360 xml / attribute to some other product and see if this makes any difference?

Do you have this setup somewhere online so we could possibly login and investigate?

PS: also if you haven't tried this yet, please try cleaning all your Magento caches and restart the WAMP server.
 

arbeloa

New member
I tested with different products but no result... I have also tried to cleaning all Magento caches and restart the WAMP server.
Same result with Magento 1.7.0.2

It's a local test but i put the error detail screen below.

Code:
<p class="product-image">
    <a href="http://127.0.0.1/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/images/catalog/product/placeholder/image.jpg " rel="prettyPhoto">
            <img id="image" width="100%" src="http://127.0.0.1/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/images/catalog/product/placeholder/image.jpg" alt="360 test">
    </a>
</p>

<!--?endif?-->
<!--?if (count($this--->getGalleryImages()) &gt; 0):?&gt;

<div class="more-views">
    <h2>More Views</h2>
    <ul>
    <!--?foreach ($this--->getGalleryImages() as $_image):?&gt;
        <li>
            <a href="&lt;br /&gt;&lt;font size='1'&gt;&lt;table class='xdebug-error xe-fatal-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'&gt;
            &lt;tr&gt;&lt;th align='left' bgcolor='#f57900' colspan=" 5"=""><span style="background-color: #cc0000; color: #fce94f; font-size: x-large;">( ! )</span> Fatal error: Call to a member function getFile() on a non-object in C:\wamp\www\app\design\frontend\default\default\template\webrotate360\catalog\product\view\media.phtml on line <i>86</i>
        </li>
    </ul>
</div>
 

WebSupport

Active member
Strange. There are hundreds of live Magento sites running 1.7.x and 1.8.x with our 360 viewer plugin and only one guy reported something similar here so far (note that he only saw this with one test Windows laptop that he wanted to through away at the end of the thread :D )

http://360-product-views.com/forum/view ... =343&p=790

Seriously though, what I'm now thinking is going on is the difference in PHP version that your WAMP server is running.

Is it one of the most recent ones (which we didn't test with)?
Please check your PHP version and let me know. This would be a simple fix or config change I believe if that's the case.
 

arbeloa

New member
Yes, it's very strange. Thanks for your support and your help !!

My WAMP configuration is:

Apache: 2.4.4
PHP: 5.4.16
MySQL: 5.6.12
 

arbeloa

New member
Very very strange... I just uninstall wamp and reinstall an older version but this is the same problem :shock:

Test with this configuration :

Apache: 2.2.22
PHP: 5.3.13
MySQL: 5.5.24
 

WebSupport

Active member
Thank you for the info. Will investigate today-tomorrow and let you know what we have. Please stay tuned.
 

WebSupport

Active member
Hi,

Can you please try this update? Just unzip the attachment and then copy both php files over the files with the same names in the follow directory:

\app\design\frontend\default\default\template\webrotate360\catalog\product\view\

Please clear / delete your magento caches after that and then try to reload your product page with the 360 view.

Please confirm if it helps!
 

Attachments

  • template.zip
    2.9 KB · Views: 94

arbeloa

New member
Thanks! it works perfectly and now the problem is solved.
For presenting multiple 360 product views on the same page it's possible ?
 

WebSupport

Active member
Great news. Thanks for confirming! Will update our plugin on Magento Connect shortly.

PS: The plugin currently supports just one 360 product view per product page.
 
Top