Post by bendrexl » Mon Nov 03, 2014 1:58 pm

Hi there - after deleting a few of the preloaded featured products and adding a few new ones, the rest of the featured products disappeared, and we can't add any new products either. Tried uninstall / reinstall of the module, no change.

Installed xdebug and poked around a bit, see attached screenshot.

Here's what I see in the db for the module:

Code: Select all

a:1:{
s:16:"yfo32tu85tsp2e29";
a:4:{
	s:7:"product";
	s:175:"<b>Notice</b>: Undefined variable: product in <b>C:\_dev\frumpy\source\upload\admin\view\template\module\featured.tpl</b> on line <b>65</b>";
	s:5:"limit";
	s:1:"8";
	s:5:"width";
	s:3:"200";
	s:6:"height";
	s:3:"200";
	}
}
Just wanted to make sure I reported this, though I'm sorry I don't have more detailed steps to reproduce.

Can I fix this easily, without reimporting the whole table?

Attachments

xdebug-featured.php.png

Xdebug for admin's featured.php - xdebug-featured.php.png (100.59 KiB) Viewed 1878 times


Newbie

Posts

Joined
Mon Nov 03, 2014 1:52 pm

Post by fido-x » Mon Nov 03, 2014 8:56 pm

What version of OpenCart are you using?

The code in the screenshot is not from OC 2.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by bendrexl » Thu Nov 06, 2014 2:07 am

fido-x wrote:What version of OpenCart are you using?

The code in the screenshot is not from OC 2.
It better be 2.0, or something's seriously wrong with the GitHub repo :D

Code: Select all

# OpenCart 2.0 change log

## v2.0.1.0 (Pending - changed from 2.0.0.1)
#### Bugs fixed
* Changed namespace issues in DB driver files.
* Added missing text_edit string in the settings area.
* Fixed scaling issue for admin progress status bars.
* Fixed image_width and image_height modules #1916
* Sale total dashboard fix (https://github.com/opencart/opencart/commit/6b44f708f8619081e91c3eedf59ad266f279c985)
* modification refresh does not clear files #1919
* Best seller module can now be enabled #1926 (https://github.com/opencart/opencart/commit/7ca7ab4a7bb3b35edbfc40eef12582c9602b1f90)
* Summernote fix for marketing #1935 (https://github.com/opencart/opencart/commit/41ba7adfd1a9572dc0143c3425a1cad1a677650d)
* Pagination closing tag fix #1933 (https://github.com/opencart/opencart/commit/fe4bb21f280087852ad77061d9f5d3b76e6d3bca)
* FTP settings variable correction #1930 (https://github.com/opencart/opencart/commit/17e450971396ecfa2e93eb513b79c7f0fdb6c38b)
* Fixed Secure Trading image in gateway list.
* Fixed missing review_guest check in product.tpl

#### Changes
* Changed DB connection error response during install when using mysqli to use native message from mysqli
* Removed unused text in stats menu in the admin
* No module validation added (https://github.com/opencart/opencart/commit/d8fb60b2958223a69b042530220962d725cdf6a7)
* Typo fix #1929
* Module name strip_tags #1925
* FTP status check added (https://github.com/opencart/opencart/commit/0b7fcfc7d652dc0e67b3ef3109f1736c05842df1)
* Added check for compression size #1772
* Update moment.js #1896
* Updated Authorize.net affiliate link to correct OpenCart promotion page for users to get special offer.
* Added check for current category before getting child data to improve speed.
* Added DB indexes to OC URL table. REF: #2120

#### Added
* Check for URL alias #1915 (https://github.com/opencart/opencart/commit/69d6252f4157faf207e3db0504de20b34eab58ef)
* Latest OpenBay Pro release.
By manually editing the serialized settings for the module, I got the products to show up in the admin view again, but trying to save any changes causes the error to be recreated in the DB again so the problem lies deeper than just this.

Newbie

Posts

Joined
Mon Nov 03, 2014 1:52 pm

Post by fido-x » Thu Nov 06, 2014 3:51 pm

Sorry, my bad.
bendrexl wrote:Installed xdebug and poked around a bit, see attached screenshot.

Here's what I see in the db for the module:

Code: Select all

a:1:{
s:16:"yfo32tu85tsp2e29";
a:4:{
 s:7:"product";
 s:175:"<b>Notice</b>: Undefined variable: product in <b>C:\_dev\frumpy\source\upload\admin\view\template\module\featured.tpl</b> on line <b>65</b>";
 s:5:"limit";
 s:1:"8";
 s:5:"width";
 s:3:"200";
 s:6:"height";
 s:3:"200";
 }
}
The error messages states "Undefined variable: product in ######/admin/view/template/module/featured.tpl on line 65". That may be what threw me off. The only thing on that line in that file is "<tbody>".

However, I recently had the same issue. After uninstalling the featured products module, then re-installing it, I got an error. I uninstalled the module again, then checked the "setting" table in the database using phpMyAdmin, and found that not all entries for this module had been removed from the table. After deleting these entries manually, I had no further problems, and have not been able to re-create the error.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia
Who is online

Users browsing this forum: No registered users and 2 guests