close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Fatal Error on Recordset Add to Cart

Thread begun 12/15/2021 8:49 am by lr_leal239405 | Last modified 12/21/2021 3:31 pm by Ray Borduin | 1423 views | 22 replies |

lr_leal239405

Fatal Error on Recordset Add to Cart

I have this Quote page with items in the quote pulling from the database. A client can press the button that Adds All items to the cart in one shot. However, on one of the tables (there's 2 tables. One is the prduct and the other some optional products for the main product), the Optionals table to be exact, I can only iterate thru 1 item to place in cart. (see file below starting on line 326 (a while loop)). When I try to do more than one, the screen freezes on blank page and the error in the log says:

PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/jvdydf5kad9w/public_html/webassist/mysqli/rsobj.php on line 305
OR
PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/jvdydf5kad9w/public_html/WA_eCart/WA_eCart_Definition_PHP.php on line 536

You can see the link below on button 'Order Complete Quote'.

The file is attached.

So if I change line 219 to 1 (selecting 1 record only), it works. If changed to 0 (to select all), it goes to blank page and executes forever. It only happens with that table.

<?php
$Recordset7 = new WA_MySQLi_RS("Recordset7",$convacc_cx,0);
$Recordset7->setQuery("SELECT * FROM cac_quote_new_optionals WHERE quotenum = '$quoteidponex' ORDER BY optional_id ASC");
$Recordset7->execute();
?>

I appreciate any help or suggestions you can provide.

Sign in to reply to this post

Ray BorduinWebAssist

How many rows are in that table?

Sign in to reply to this post
Did this help? Tips are appreciated...

lr_leal239405

I didn't realize you had replied. I usually get an email alert when you reply but for some reason I didn't get one.

In that table there are 2400 but the ones selected are only a couple.

Also, the first table, which is the products table, also has about 2400 and I have no issue with grabbing the products from that one.

Sign in to reply to this post

Ray BorduinWebAssist

2400 records is a lot to display on a single page. You could limit the number of records on the page and add pagination, you could try adding an index to the table on the column quotenum and that would probably speed up your query.

Sign in to reply to this post
Did this help? Tips are appreciated...

lr_leal239405

No no. There is no 2400 records to display. Only 2.

Sign in to reply to this post

Ray BorduinWebAssist

Can I get FTP access and a URL to test with? I can try to figure out what is going on.

Sign in to reply to this post
Did this help? Tips are appreciated...

lr_leal239405

ok. see info below:

Again, when I change line #219 on Recordset7 from All records (or 0) to 1 it works ok. It's only when it's more than one of that recordset where it hangs up with a blank page:
$Recordset7 = new WA_MySQLi_RS("Recordset7",$convacc_cx,1);
instead of:
$Recordset7 = new WA_MySQLi_RS("Recordset7",$convacc_cx,0);

You have to press "Order Complete Quote' green button to get it to add all items in quote to the cart.

Sign in to reply to this post

Ray BorduinWebAssist

I was trying to work on the file and there was an FTP error and then the file was blank when I went to open it.

Please re-upload your copy of the quote_form_min_rtest.php page and I can download it again.

Sign in to reply to this post
Did this help? Tips are appreciated...

lr_leal239405

Oh. I did clear it and it doesn't go to blank any longer. Try downloading it again. Sorry about that.

Sign in to reply to this post

Ray BorduinWebAssist

Whenever I try to upload the file with changes it says the disk is full so I can't upload anything. I tried deleting some items from the attachments folder, but it still gives the error so I can't upload. (I can't even re-upload the attachments I downloaded)

Sign in to reply to this post
Did this help? Tips are appreciated...
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...