close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Data Assist multiple record update only works for a number of records

Thread began 5/11/2015 3:52 pm by gb261593 | Last modified 5/13/2015 10:54 am by Ray Borduin | 2856 views | 12 replies |

gb261593

Data Assist multiple record update only works for a number of records

I have used the multiple update function to update records in a database and it has worked fine. However, when I have got a large number of records to update it seems to work for some and then it stops but doesn't show any error message etc.

I'm not sure exactly what the number is when it stops functioning but it is very annoying as otherwise it works brilliantly.

Can anyone offer any way I can fix this please?

Many thanks

Sign in to reply to this post

Ray BorduinWebAssist

If you are talking about hundreds or thousands it is probably the post_max_size setting in php. That setting can be set to a larger number in the php.ini. There is also a php setting for max_input_vars that you could run up against.

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

gb261593

It isn't a very large number. I have just done a test where I asked it to update 300 records - it did 200 of them and ignored the rest. Is this a known action that I can fix somehow, have I made a mistake in what I have coded or is it just something that can't be fixed?

Sign in to reply to this post

Ray BorduinWebAssist

You can probably fix it by updating the post_max_size and max_input_vars values on your php server itself. It doesn't sound like it would be a problem with the php page itself.

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

gb261593

How can I do that on the page itself? It's unlikely I can change anything else as it is a shared server,

Thank you for your time.

Sign in to reply to this post

Ray BorduinWebAssist

I'm not sure that you can, it depends on the shared server and hosting company. I'd ask them if it is possible through the hosting control panel.

If they allow it, those settings may also be update-able from your .htaccess file.

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

gb261593

And what lines would I need in the htaccess file (assuming it's allowed)?

Sign in to reply to this post

Ray BorduinWebAssist

You just set the values in the .htaccess

php_value memory_limit 4294967296
php_value post_max_size 1073741824
php_value upload_max_filesize 524288000
php_value max_input_vars 1000

To verify that the new setting is active, create a PHP test file that contains the following code in the same directory where the .htaccess file is located:

php:
<?php phpinfo(); ?>
Sign in to reply to this post
Did this help? Tips are appreciated...

gb261593

Thank you. I have made those changes on my local system and retested but the result is exactly the same - only 200 records get updated. Is there anything else I can try?

Sign in to reply to this post

Ray BorduinWebAssist

Are the updates from your .htaccess file being reflected in the phpinfo page? or are they being ignored?

I think this has to be the problem, so I'd probably go to the hosting company and see if there is another way to change these values.

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