Hi,
I tried to install the Oscommerce module on a CMSMS 0.12.1.
I uploaded the Oscommerce folder under the modules folder and when I try to access the list of modules in my admin panel of the CMSMS, I got the following error message:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /raid/www/play/root/modules/Oscommerce/Oscommerce.module.php on line 304
Any ideas what's wrong?
Problem with Oscommerce
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Problem with Oscommerce
I don't think the oscommerce module is ready for prime time.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Problem with Oscommerce
*sigh* osCommerce support or ZenCart support would be one of the things I am waiting for ... but it is good to see that there are some developers that look forward to connecting CMSMS and osCommerce. Indeed good news though it is not a stable release yet.
Regards,
Nils
Regards,
Nils
Re: Problem with Oscommerce
Okay this module was a real arse to get going ... and imagine my suprise when our old friend register_globals rears it's head during the installl... This will take you about half an hour...
first fix make sure that the module folder is named
Oscommerce
Then in this folder alter Oscommerce.module.php
On line 304 there is a syntax error... replace
echo "ppppppppp $product_info['products_price']";
with
echo "ppppppppp".$product_info['products_price'];
Download the latest version of OSCommerce
http://www.oscommerce.com/solutions/downloads
Now download this patch (if you - wisely - have registered globals off on your server)
http://www.oscommerce.com/community/con ... er_globals
READ THE INSTRUCTIONS - and then replace the files with the new patched ones. NOW there are quite a few and it assumes the catalog folder as the root - this is actually the oscommerce folder INSIDE the OSCommerce module folder
ie /web_root/cms/modules/Oscommerce/oscommerce
Now setup OSCommerce first... ie
http://myserver.com/cms/modules/Oscomme ... e/install/
Run through the steps... and make sure all is good...
Then once all of this has been done you need to assign the Use OsCommerce permission in cmsmadesimple to the admin user at least
Then much like the news module - OS Commerce appears under the Content Menu
And away you go...
first fix make sure that the module folder is named
Oscommerce
Then in this folder alter Oscommerce.module.php
On line 304 there is a syntax error... replace
echo "ppppppppp $product_info['products_price']";
with
echo "ppppppppp".$product_info['products_price'];
Download the latest version of OSCommerce
http://www.oscommerce.com/solutions/downloads
Now download this patch (if you - wisely - have registered globals off on your server)
http://www.oscommerce.com/community/con ... er_globals
READ THE INSTRUCTIONS - and then replace the files with the new patched ones. NOW there are quite a few and it assumes the catalog folder as the root - this is actually the oscommerce folder INSIDE the OSCommerce module folder
ie /web_root/cms/modules/Oscommerce/oscommerce
Now setup OSCommerce first... ie
http://myserver.com/cms/modules/Oscomme ... e/install/
Run through the steps... and make sure all is good...
Then once all of this has been done you need to assign the Use OsCommerce permission in cmsmadesimple to the admin user at least
Then much like the news module - OS Commerce appears under the Content Menu
And away you go...
Re: Problem with Oscommerce
Thanks for the great info regarding getting Oscommerce working.
I'm new to CMSMS and am trying to get this mod up and running so I can check it out. I'm a little unclear on the instructions. I got through the folder name and Oscommerce.module.php fix, but I'm a little confused when told to download the latest version of OsCommerce. That doesn't contain Oscommerce.module.php of course, so I'm a little confused about what to do with that. Should I be replacing the 1.0 files on my server with the 2.2 files and then the patched files on top of that?
Thanks,
Kris
I'm new to CMSMS and am trying to get this mod up and running so I can check it out. I'm a little unclear on the instructions. I got through the folder name and Oscommerce.module.php fix, but I'm a little confused when told to download the latest version of OsCommerce. That doesn't contain Oscommerce.module.php of course, so I'm a little confused about what to do with that. Should I be replacing the 1.0 files on my server with the 2.2 files and then the patched files on top of that?
Thanks,
Kris
Re: Problem with Oscommerce
Kriskd
The versions have changed since I last got it running... have a good read through the OSCommerce instructions and see if it still requires regiseter_globals on... if not then you shouldn't have to patc anything
R
The versions have changed since I last got it running... have a good read through the OSCommerce instructions and see if it still requires regiseter_globals on... if not then you shouldn't have to patc anything
R
Re: Problem with Oscommerce
I appears that Oscommerce does still require register globals be on and it's off with my webhost as when I try to get to the admin panel of Oscommerce within CMSMS, I get an error about this. So, I still need to perform the patch.
As stated in my previous post, I remain unclear as to why I need to download the latest version from Oscommerce and what to do with that since it doesn't have all the mod files in it for CMSMS of course. Can I get some more advice?
As stated in my previous post, I remain unclear as to why I need to download the latest version from Oscommerce and what to do with that since it doesn't have all the mod files in it for CMSMS of course. Can I get some more advice?
Re: Problem with Oscommerce
You need to download the latest version primarily because of security updates,
The module files just tell CMSMS where OSCommerce is... and what data to get from it.
I've actually since tried to apply the patches and it doesn't want to take at all under CMSMS 1.04... so I guess it's a dead duck at this stage until someone wants to spend time on it.
R
The module files just tell CMSMS where OSCommerce is... and what data to get from it.
I've actually since tried to apply the patches and it doesn't want to take at all under CMSMS 1.04... so I guess it's a dead duck at this stage until someone wants to spend time on it.
R