close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

mysql error MAX_JOIN_SIZE

Thread began 7/09/2010 9:35 am by bbolt360986 | Last modified 7/09/2010 4:51 pm by Eric Mittman | 2336 views | 3 replies |

bbolt360986

mysql error MAX_JOIN_SIZE

I am using the PowerStore 300 site and while trying to delete an advanced option for one of the products the following error comes up.

The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay

What is the exact syntax I should put in the php.ini file that would fix this, i have tried SET SQL_BIG_SELECTS=1 and SET SQL_MAX_JOIN_SIZE=10000000 and the error still comes up.

Sign in to reply to this post

Eric Mittman

This is a MySQL setting not php, so you would either need to set this in your my.ini or other MySQL config file, or you can try setting this in the code directly.

On your options_Add.php page try adding in this code just after line 45:

php:
<?php

mysql_select_db
($database_PowerStoreConnection$PowerStoreConnection);
$set_query "SET SESSION SQL_BIG_SELECTS=1";
$rsSet mysql_query($set_query$PowerStoreConnection) or die(mysql_error());
?>



This should execute the query before any of the others run and set this value for you for the duration of the session. Please give this a try and let us know how it works.

Sign in to reply to this post

bbolt360986

Thanks for the response, I inserted the code and the sql query did what it was supposed to, but then a warning appeared at the top that read:

Warning: Cannot modify header information - headers already sent by (output started at /home6/divinebu/public_html/Admin/options_Add.php:51) in /home6/divinebu/public_html/Admin/options_Add.php on line 507

the code on that line was
header('Location :'.$_SERVER['PHP_SELF']);
and all the information on the page got cut off after the first two lines, so I just commented it out and appears to be working just fine, it refreshes the page without that line of code.

Sign in to reply to this post

Eric Mittman

The error is telling you that the header call you have on line 507 could not be executed because of output that occurred on line 51. This almost always occurs because of white space that is outside of the php blocks, so if you have any spaces or returns that are outside of the php block that you added it can cause this problem.

Sign in to reply to this post

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...