jenniferR
I'm having this same issue. I just purchased and downloaded installed both DWCC and the webassist extensions.
I have one report page that has about 20 recordsets. I've deleted old and replaced with MySQLi recordsets. I've updated all the fields. I've removed the security and replace with Secure Page wizard. This works on other pages.
About 99/100 times when I try to use the record count feature in the webassist extension, it crashes DW before the wizard box can fully load. The one time it works, it gives the code:
<?php echo $recordset->TotalRows; ?>
However when you begin to type in $recordset and then type in -> the available actions pop up for you to select. TotalRows does not appear in this list. It seems to me that the wizard creates a sequence of code that is in conflict with the programming.
When I try to load the page it get "Error in SQL syntax". When I do a find on this phrase on my entire current site, it only appears once in the code. In the rsobj.php file in the webassist directly. Specifically this part:
public function execute() {
$statement = $this->Statement;
if ($this->MaxRows && !isset($_GET['totalRows_'.$this->Name])) {
$statement = preg_replace('/^select /i',"SELECT SQL_CALC_FOUND_ROWS ",$statement);
}
if ($this->MaxRows) $statement .= " LIMIT ".$this->StartLimit.",".$this->MaxRows;
$query = $this->Connection->Prepare($statement);
if (!$query) {
die("Error in SQL syntax");
return;
}
I've deleted the rsobj.php file and recreated it as described above. I've deleted my webassist directly on my remote server and reuploaded it from my local server.
Nothing seems to fix this error.
I'm reluctant to remove all instances of my total rows code since for each section i use it to hide or show div's based on if totalrows > 0.