Adult Script Pro Community Forums

Create, help and share your ideas with the community!

You are not logged in.

#1 2011-03-05 03:53:42

jupita
Member
Registered: 2011-03-05
Posts: 23

Error when updating privacy and terms of service pages

When trying to update privacy and terms of service pages, I get this error



Warning: tidy_parse_string() [function.tidy-parse-string]: Could not set encoding 'UTF-8' in /home//public_html/my urladmin/modules/content/components/edit.php on line 77

Fatal error: Call to a member function cleanRepair() on a non-object in /home//public_html/my url/admin/modules/content/components/edit.php on line 78

Offline

#2 2011-03-05 10:16:55

symtab
Administrator
Registered: 2010-08-23
Posts: 7,495
Website

Re: Error when updating privacy and terms of service pages

The bug appears on servers that have tidy installed, but its not a good version. To fix, edit admin/modules/content/components/add.php and admin/modules/content/components/edit.php and remove the following block of code:

                if (function_exists('tidy_parse_string')) {
                    $tidy_config = array(
                        'clean' => true,
                        'output-xhtml' => true,
                        'show-body-only' => true,
                        'wrap' => 0,
                    );
 
                    $tidy   = tidy_parse_string($content, $tidy_config, 'UTF-8');
                    $tidy->cleanRepair();
                    $content = $tidy;
                }

Will be fixed in the new version.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2011-03-08 16:33:28

jupita
Member
Registered: 2011-03-05
Posts: 23

Re: Error when updating privacy and terms of service pages

I have already deleted the above. And there is no change.

Offline

#4 2011-03-08 16:46:35

symtab
Administrator
Registered: 2010-08-23
Posts: 7,495
Website

Re: Error when updating privacy and terms of service pages

Did you delete it for both add.php and edit.php?


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#5 2011-03-08 20:22:07

jupita
Member
Registered: 2011-03-05
Posts: 23

Re: Error when updating privacy and terms of service pages

I have deleted in edit as well (I had overlooked that) and the privacy and terms pages have updated successfully, thank you. However, when  I try to create/add a new page, I still get this error:

Warning: tidy_parse_string() [function.tidy-parse-string]: Could not set encoding 'UTF-8' in /home/glosdata/public_html/missgreenplanet.tv/admin/modules/content/components/add.php on line 83

Fatal error: Call to a member function cleanRepair() on a non-object in /home/glosdata/public_html/missgreenplanet.tv/admin/modules/content/components/add.php on line 84

Last edited by jupita (2011-03-08 20:22:39)

Offline

#6 2011-03-08 20:50:16

symtab
Administrator
Registered: 2010-08-23
Posts: 7,495
Website

Re: Error when updating privacy and terms of service pages

Please also delete that block of code from admin/modules/content/components/add.php.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#7 2011-03-09 00:55:04

jupita
Member
Registered: 2011-03-05
Posts: 23

Re: Error when updating privacy and terms of service pages

I had already edited admin/modules/content/components/add.php. Both add.php and edit.php have been edited as per your instruction, and the page edits is now working.

But the "Add" new page function is now worse than before whereby the new page would open and new data would be added, and even previewed, only failing to save. Now, when I click "Add", it goes straight to the error.

--
Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/glosdata/public_html/missgreenplanet.tv/admin/modules/content/components/add.php on line 100

Last edited by jupita (2011-03-09 00:56:29)

Offline

#8 2011-03-09 09:09:02

symtab
Administrator
Registered: 2010-08-23
Posts: 7,495
Website

Re: Error when updating privacy and terms of service pages

Please email me FTP access and administrator site access (support@adultscriptpro.com).


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB