Debugging saving large scripts

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Debugging saving large scripts

Postby chrism » Mon May 11, 2009 3:39 pm

Hi All,

We have some very large scripts that include HTML that we are looking to use. However, when we enter them in through the script interface, it says it saves them to the database and return success, but nothing is there. The only way I can get the large scripts to save is to go directly into the database. I thought is may be a number of characters issue for the 'text' field in the database, but it inserts just fine with PHPMyAdmin.

Any thoughts?
chrism
 
Posts: 93
Joined: Mon Jan 26, 2009 10:02 am

Postby mflorell » Mon May 11, 2009 11:16 pm

Usually it's not the size, but the use of special characters that causes issues like this. Try stripping all of the curly quotes and triple dots...(and similar Microsoft word characters) out of the file first and try it again.
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby chrism » Tue May 12, 2009 6:55 am

I'll give that a shot.

Is there any sort of routine you recommend checking the return results to see what is actually being passed into the database insert call?
chrism
 
Posts: 93
Joined: Mon Jan 26, 2009 10:02 am

Postby mflorell » Tue May 12, 2009 7:53 pm

In more recent SVN trunk versions of admin.php I did add some $DB printouts for script submissions to catch some stuff like this. I also made quite a few changes in SVN trunk specifically related to scripts and filters and these kinds of issues.
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: No registered users and 73 guests