francois21 Posted May 16, 2011 Share Posted May 16, 2011 hello I am in France and when I put special characters in content I have message on top: Parse error: syntax error, unexpected T_STRING in C:\wamp\www\01-boutic_rc231_en_dev\admin\modules.php(232) : eval()'d code on line 2 and I can't modifie content after In front end all is good Ex :I put in content french : c'est In front end OK = c'est in admin==> edit==>message error and I cannot edit content french but I can edit content english Francois Quote Link to comment Share on other sites More sharing options...
♥kymation Posted May 16, 2011 Author Share Posted May 16, 2011 The apostrophe/single quote is a special character. To add one safely, escape it with a backslash, like so: c\'est. This is a problem with the stock osCommerce code. I'll have to write a function that fixes this for the next version. Thanks for reporting the bug. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
francois21 Posted May 24, 2011 Share Posted May 24, 2011 Hello Did you find a solution to the problem of apostrophe. I don't know how to make it This problem is for the French but in English if you write it's or I can't in the text it is the same problem .Without this problem your contribution is perfect. Thank you for this great job Francois Quote Link to comment Share on other sites More sharing options...
bob815 Posted June 2, 2011 Share Posted June 2, 2011 Jim, I'm sure there is a simple solution to my problem. I'm trying to install a paypal logo in the box but not sure how to do it. I've tried entering the html code from the Paypal web site in the text box and I get the text in the box on my home page. I have CKeditor installed and tried entering the text in the image import box and I just get the little image box with the red x in the generic box. What am I doing wrong. Thanks for the help!! Quote Link to comment Share on other sites More sharing options...
♥kymation Posted June 2, 2011 Author Share Posted June 2, 2011 HTML code should work. Please paste that code here in a code box. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
bob815 Posted June 3, 2011 Share Posted June 3, 2011 This is what I am pasting. Where can I find the instructions that shows how to upload a image into this contribution. This is the easiest contribution to install yet I've wasted a whole day trying to figure out how to get a image in it. Is there a replacement code that I can use in includes/modules/boxes/bm_generic.php to get this done. Thanks...Bob <!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="center"><tr><td align="center"></td></tr><tr><td align="center"><a href="#" onclick="javascript:window.open('https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');"><img src="https://www.paypal.com/en_US/Marketing/i/banner/bnr_shop_120x30_y.gif" border="0" alt="Additional Options"></a></td></tr></table><!-- PayPal Logo --> Quote Link to comment Share on other sites More sharing options...
♥kymation Posted June 3, 2011 Author Share Posted June 3, 2011 I just pasted that into the English Contents box on my test site and it works fine. Check that you pasted all of the code as it is above. This box does not have the capability to upload images. Use FTP to transfer your image into the images directory on your server, then paste this code where you want to see it: <img src="/images/my_image.gif" border="0" alt="My Image"> Change the image name and alt description to match your image. Regards JIm Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
bob815 Posted June 3, 2011 Share Posted June 3, 2011 Jim, Yes the code does work. Because of CKeditor, I inserted the code and saved and got the text only. I had to hit the Sourse code buttom at the top of CKeditor and than copy and paste the code in the text area and I got my logo. Thanks for the help.....Bob Quote Link to comment Share on other sites More sharing options...
bob815 Posted June 3, 2011 Share Posted June 3, 2011 Jim, But now I have this error message in my admin and I don't have a text box or CKeditor under the "English contents" heading Parse error: syntax error, unexpected T_STRING in /home/moviepr1/public_html/admin/modules.php(232) : eval()'d code on line 1 Quote Link to comment Share on other sites More sharing options...
♥kymation Posted June 3, 2011 Author Share Posted June 3, 2011 You put something bad in the box. It's only intended for simple text. To fix, go to your configuration database table and search for English Contents in the configuration_title field. You'll see the text you inserted in the configuration_value field. Edit that text to add a backslash in front of any single quotes/apostrophes (or just delete them.) You should now be able to edit the field in your Admin. Regards JIm Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
bob815 Posted June 3, 2011 Share Posted June 3, 2011 Jim, Tried this twice and still getting the same message. What in the coding in reply #106 would you comment out or delete? I copied and pasted a new logo design and still getting the same error message. Thanks....Bob Quote Link to comment Share on other sites More sharing options...
francois21 Posted June 3, 2011 Share Posted June 3, 2011 (edited) Hello Edit that text to add a backslash in front of any single quotes/apostrophes (or just delete them.) You should now be able to edit the field in your Admin Sorry ! It don't work whith backslash, I have the same result (with ckeditor). In reply#106 ther is this code ','olcwhatispaypal',' it si bad because quotes/apostrophes . Francois Edited June 3, 2011 by francois21 Quote Link to comment Share on other sites More sharing options...
♥kymation Posted June 3, 2011 Author Share Posted June 3, 2011 You missed one or more single quotes. Try again. Yes, this does work. It may not work with ckeditor, but then I never promised that it would. Put ckeditor in code mode before you even try this. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
francois21 Posted June 3, 2011 Share Posted June 3, 2011 I put ckeditor in code mode and it Don't work whith backslash before quote I try to remove ckeditor and use generic_box whith no modification. Same problem whith quote. Same problem whith backslash before quote. I can save and in front end all is OK but when I go back in admin, I can't edit the content of the box. Francois Quote Link to comment Share on other sites More sharing options...
bob815 Posted June 3, 2011 Share Posted June 3, 2011 Jim, Tried a third time and just not working using the backslash. There must be something in CKeditor that prevents this from occuring because everything that francois21 is saying is exactly what I have been experiencing. I was however able to get my page working by doing the following: I had a paypal logo in one of my files and uploaded it to my images folder as you directed. Went into the module to the edit "English Contents" area and changed the setting to Source Code and pasted your code <img src="/images/my_image.gif" border="0" alt="My Image"> this did not work for me... however once I inserted <img src="http://yourdomain.com/images/my_image.gif" border="0" alt="My Image"> Everything is working fine so far, my image is where it is suppose to be and no error on the admin side. Thanks for your help again......Bob Quote Link to comment Share on other sites More sharing options...
bob815 Posted June 4, 2011 Share Posted June 4, 2011 Jim, In preping for my site release to the public, I came across another problem that has me completely baffled and I don't know if it is related to trying to get the generic box running or not. My site centers around selling photographs of actors. My first level of categories is a Alfa listing such as Actor A, Actor B, Actor C and so on thru Z. The second level lists is the name of the Actors that I have pictures of like AamesW,AbdulJabbarK,AdamsD etc and then the third shows all the pictures I have of that particular actor. Each name in the second level has a category picture ie Aames,W is designated with a small Thumbnail of Willie Aames.My problem is that for the Actor F none of the Actors category thumbnails are loading,and its giving a prompt that no categories exist even though in the left columne it is showing all the names belonging under F such as FairchildM,FalkP,FarrowM etc. When I go into the admin it shows the thumbnails exactly where they should be for each actor beginning with the last name of "F".In the database, categories and category description look OK as far as I can tell. All of the other Actor categories are Ok, its just the letter F that got messed up. Any ideas.....thanks ....Bob. Quote Link to comment Share on other sites More sharing options...
kainer Posted June 4, 2011 Share Posted June 4, 2011 Installed this addon three times and everything works great till I tried to use php code in the linkbox in the adminarea of the generic box. I got some errors, deinstalled the module and installed it new. Now I have a serious problem: There is always ONE module shifted to the not installed modules although it IS installed. It is not visible on the webside and it is clearly in the part where NONinstalled modules are, but it shows the "Remove Module"-button. If I remove it, the system removes an OTHER installed module from my webside which then is shifted to the part where uninstalled modules should be only. Strange behavior. And I get this errormessage in the adminarea/boxes: Warning: reset() [function.reset]: Passed variable is not an array or object in /is/htdocs/wp1114077_UY0OKQWWRG/www/siamfashionwear.com/catalog/admin/modules.php on line 227 Warning: Variable passed to each() is not an array or object in /is/htdocs/wp1114077_UY0OKQWWRG/www/siamfashionwear.com/catalog/admin/modules.php on line 228 Some idea? Quote Link to comment Share on other sites More sharing options...
♥kymation Posted June 4, 2011 Author Share Posted June 4, 2011 <snip>All of the other Actor categories are Ok, its just the letter F that got messed up. Any ideas.....thanks ....Bob. Nothing to do with the Generic Box. The only way I could get this to happen is to add one of the Addons that hides certain categories and then hide all of the "F" subcategories. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
♥kymation Posted June 4, 2011 Author Share Posted June 4, 2011 Installed this addon three times and everything works great till I tried to use php code in the linkbox in the adminarea of the generic box. I got some errors, deinstalled the module and installed it new. Now I have a serious problem: There is always ONE module shifted to the not installed modules although it IS installed. It is not visible on the webside and it is clearly in the part where NONinstalled modules are, but it shows the "Remove Module"-button. If I remove it, the system removes an OTHER installed module from my webside which then is shifted to the part where uninstalled modules should be only. Strange behavior. And I get this errormessage in the adminarea/boxes: Warning: reset() [function.reset]: Passed variable is not an array or object in /is/htdocs/wp1114077_UY0OKQWWRG/www/siamfashionwear.com/catalog/admin/modules.php on line 227 Warning: Variable passed to each() is not an array or object in /is/htdocs/wp1114077_UY0OKQWWRG/www/siamfashionwear.com/catalog/admin/modules.php on line 228 Some idea? Don't try to use PHP code in the box; it won't work, and it messes up the database. You've managed to mess up some of the module constants in the database configuration table. It's almost impossible to figure out which one(s). The best way to resolve this is to uninstall all modules. Then, to be certain, search the configuration table for any strings containing MODULE in the configuration_key field and delete all of those. You should now be able to reinstall your modules. Regards Jim aotmedia 1 Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
bob815 Posted June 4, 2011 Share Posted June 4, 2011 Jim, Can you give me a idea of which php file I might find the error. I've changed 54 different php files and have saved each change under a coding system just for this vary thing. Would the problem be in the catalog/index.php file? These are the current contributions I've added lately.Unfortunately I'm not sure how long this problem has existed. Any suggestions would be appreciated. Thanks...Bob password_strength_meter Master_Password Generic_Box HEader_SEO ckeditor Quote Link to comment Share on other sites More sharing options...
♥kymation Posted June 4, 2011 Author Share Posted June 4, 2011 My first guess would be catalog/includes/modules/product_listing.php. If that's not it, catalog/index.php (the middle part) and possibly catalog/includes modules/boxes/bm_categories.php. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
bob815 Posted June 4, 2011 Share Posted June 4, 2011 catalog/includes/modules/product_listing.php.....Never altered this file catalog/index.php (the middle part)..............All five revised versions tried and no change catalog/includes modules/boxes/bm_categories.php......Never altered this file either... Any other possibilities you can think of.....thanks...Bob ..... Quote Link to comment Share on other sites More sharing options...
♥kymation Posted June 4, 2011 Author Share Posted June 4, 2011 Not a thing. Then again, I've never said that I know everything. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
bob815 Posted June 5, 2011 Share Posted June 5, 2011 Ok, thanks for your help. I'll just start pulling apart the site until I get my pictures back. Quote Link to comment Share on other sites More sharing options...
kainer Posted June 5, 2011 Share Posted June 5, 2011 Don't try to use PHP code in the box; it won't work, and it messes up the database. You've managed to mess up some of the module constants in the database configuration table. It's almost impossible to figure out which one(s). The best way to resolve this is to uninstall all modules. Then, to be certain, search the configuration table for any strings containing MODULE in the configuration_key field and delete all of those. You should now be able to reinstall your modules. Regards Jim Thanks for your reply Jim. I will give it a try. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.