B
B
be3_max2011-09-29 22:51:44
Magento
be3_max, 2011-09-29 22:51:44

Problem with widgets in Magento CMS?

I am learning Magento, making a widget following the example of Creating a Magento Widget . I did everything according to the lesson, cleared the cache, the widget appeared in the list of widgets, I insert the widget on the page, I save it and nothing happens , the page is empty ...
I think ok, I probably messed up somewhere, well, well done from Magenta posted a link to the archive with the finished widget.
I copy the widget files to the server, clear the cache, click on the [Insert Widget] page and get:
Widget Insertion

Fatal error: Class 'Sample_WidgetOne_Helper_Data' not found in /home/lh/public_html/ms.com/app/Mage.php on line 523

The data.php file and the class in it are in place.
The question is, if you had such errors, where would you first look?
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Scissors, 2011-09-30
@Scissors

I would look at the backtrace
the system cannot find the class,
check the paths, file names
and by the way the letter case Helpers/Data.php

O
Oleg Batishchev, 2014-10-12
@z0rg

If it doesn't find the class, then 1. it simply doesn't include the module. 2. wrong location or class name.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question