CMSB COOKBOOK PHP code copied from Firefox has nonprinting characters causing errors (I Think)

10 posts by 3 authors in: Forums > CMS Builder
Last Post: April 27, 2023   (RSS)

Hi all,

I’ve come up with a weird issue.

Lately, when I copy any php code snippets from my CMSB Cookbook recipe detail page (that is displayed in the latest version of Firefox with standard security settings and no plugins), and try to paste it into a blank php page, I get a multitude of errors (I’m seeing them in Dreamweaver, image attached) and the errors also keep the page from displaying in a browser. A copy of a page with malformed code is also attached.

I can, however, generate clean detail viewer code for the detail page and any code copied from that page viewed in Firefox throws no errors and works correctly.

I can also view the recipe detail page in either Chrome or Edge, and any copied code snippet show no errors.

I'm running CMSB Version 3.57 (discovered the issue in 3.55 before I updated today) and PHP 7.4 (Bluehost hasn't updated my server to PHP8+ yet)

I’m pretty sure that it has something to do with the code on the detail page (attached) that is generating some non printable characters that mess with Firefox, but I’m pretty much at the limit of my expertise here.

The original code was created in December 2018 with much help from Daniel Louwe.

The original forum thread was: https://www.interactivetools.com/forum/forum-posts.php?81509
And the CMSB Cookbook recipe is at: http://www.thecmsbcookbook.com/recipedetail.php?324

Thanks,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Hi Dave,

Glad you could find a possible culprit.

Is there any way for you to check the php recipe code for any issues or required updates through consulting?

Thanks,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Dave - January 17, 2023

Hi Jerry, 

Sure thing, just send through a second-level support ticket with instructions on how to recreate the issue and we'll have a look.  

Thanks!

Dave Edis - Senior Developer
interactivetools.com

Thank you Dave,

I've submitted the support request

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Codee - March 31, 2023

Hi Jerry, 

Maybe a small clarification here...the errors are occurring AFTER pasting into dreamweaver, right?  Have you tried opening a plain text editor like notepad, uedit, etc...and compare the result to the dreamweaver paste?  If it works flawlessly in the plainer editors then my guess would be dreamweaver is the issue. 

Hi Codee,

Thanks for the insight.

It's so hard to tell.

I switched to Chrome and the code in Dreamweaver was fine.

After a few upgrades of Firefox, the issue seems to have dissapeared also. I'm using a really old version of Dreamweaveer though so maybe it was that after all.

Thanks for putting on your thinking cap though.

Best,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Codee - March 31, 2023

No problem, Jerry. That was actually the final straw for me to abandon dreamweaver years ago.

By gkornbluth - April 1, 2023

I might do the same.

What are you using now?

Jerry

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Codee - April 27, 2023 - edited: April 27, 2023

Hi Jerry, 

Sorry for the delay in responding. I just kept running into different code-compatibility issues back then: *) The code resulting from Dreamweaver wasn't what we consider the best, or pure, code so it was prone to issues; *) Dreamweaver did not appreciate the injection of regular html code into its code; *) copy-pasting code from Dreamweaver's work area on to an html page created separately sometimes resulted in extra, or 'invisible', characters (like how it occurs when copy-pasting from MSWord into other non-MS files).  For me, at the time, it was faster to just write the code then to use Dreamweaver as a code assist. I understood the direction I wanted the code to take better than Dreamweaver understood.  I am not trying to humanize Dreamweaver...just speaking colloquially.  Since then I have just used a text editor and write all the code by hand. If there is a problem I know who's fault it is and the only code I have to correct is my own. There are a gazillion editors, and levels of editors, out there.  A friend referred me to try Ultra Edit and I've mostly used it ever since.