Post by SXGuy » Tue Jul 19, 2011 1:39 am

What has changed for module code between 1.5.0.5 and 1.5.1? my old modules are not working and i noticed in the new release there has been some changes. But i can not find any documentation to say what has changed?

What has changed?

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by Xsecrets » Tue Jul 19, 2011 1:47 am

Daniel changed the way that the module information is stored in the database. Now instead of being stored individually it's stored as serialized data.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by SXGuy » Tue Jul 19, 2011 2:02 am

ok.

So what does that mean for updating modules? because at the moment, if my module has 1 position set it does not display, if i set multiple positions and pages i get the following errors

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\opencart151\catalog\controller\common\column_left.php on line 49Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\opencart151\catalog\controller\common\column_right.php on line 49Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\opencart151\catalog\controller\common\content_top.php on line 49Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\opencart151\catalog\controller\common\content_bottom.php on line 49

Thing is, after comparing the controller files relating to modules i can not for the life of me, see what has changed.

So is there another file i should be editing?

EDIT: actually i think i get what you mean, i guess theres a table somewhere, where i need to include my modules?

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by Xsecrets » Tue Jul 19, 2011 2:17 am

compare the admin controllers for the modules and you will start to see some differences then compare the content_top left right etc controllers and you'll see the differences there.
There is no new table to store the module in it's a difference in the way the module settings are stored in the settings table now.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by SXGuy » Tue Jul 19, 2011 2:29 am

ah i got ya, actually i see the changes now. Didnt think of actually looking at the admin files for module installation LOL was just fixated with the rendering.

Thanks for the help!

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by TheSponge » Fri Jul 22, 2011 5:30 am

Any chance you can say where the differences are?
Warning: Invalid argument supplied for foreach() in C:\wamp\www\Cart1.5\catalog\controller\common\column_left.php on line 49Warning: Invalid argument supplied for foreach() in C:\wamp\www\Cart1.5\catalog\controller\common\column_left.php on line 49Warning: Invalid argument supplied for foreach() in C:\wamp\www\Cart1.5\catalog\controller\common\column_right.php on line 49Warning: Invalid argument supplied for foreach() in C:\wamp\www\Cart1.5\catalog\controller\common\column_right.php on line 49Warning: Invalid argument supplied for foreach() in C:\wamp\www\Cart1.5\catalog\controller\common\content_top.php on line 49Warning: Invalid argument supplied for foreach() in C:\wamp\www\Cart1.5\catalog\controller\common\content_top.php on line 49Warning: Invalid argument supplied for foreach() in C:\wamp\www\Cart1.5\catalog\controller\common\content_bottom.php on line 49Warning: Invalid argument supplied for foreach() in C:\wamp\www\Cart1.5\catalog\controller\common\content_bottom.php on line 49

cant seem to see where the error in the modules are? i just upgraded too 1.5.1 using the beta script,
thanks

User avatar
New member

Posts

Joined
Sat Mar 12, 2011 10:35 pm

Post by SXGuy » Fri Jul 22, 2011 2:54 pm

they layout codes have all changed, you need to check, admin/controller/module/yourfile.php and catalog/controller/module/yourfile.php

infact compare it with another module file and you will see.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by TheSponge » Fri Jul 22, 2011 5:37 pm

I hadnt made any changes or any custom modules, I overwrote the files completely, What I did do was uninstall all the modules then reactivated them, this got rid of the errors ;)

User avatar
New member

Posts

Joined
Sat Mar 12, 2011 10:35 pm

Post by SXGuy » Fri Jul 22, 2011 6:57 pm

TheSponge wrote:I hadnt made any changes or any custom modules, I overwrote the files completely, What I did do was uninstall all the modules then reactivated them, this got rid of the errors ;)
Have you also tried placing the module in two different layouts? because i did this also, and the problem came back ;)

If you havent got the problem then great, but just double check, cos i dont know what you mean by "overwrite files".

If you overwrote standard module files then great, but i cant see how you could overwrite custom modules.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by TheSponge » Fri Jul 22, 2011 11:55 pm

I didnt have any custom modules, I just copied all the new files right over the old ones (just keeping my config and stylesheet) it hasnt re-occured, so I guess all is ok. thanks

User avatar
New member

Posts

Joined
Sat Mar 12, 2011 10:35 pm

Post by rfary » Sat Jul 23, 2011 5:01 am

i found the manufacturer's module missing which was what is causing the error for me.

Newbie

Posts

Joined
Sun Jul 03, 2011 7:39 am
Who is online

Users browsing this forum: No registered users and 6 guests