Title: PHP Warning
Last modified: February 28, 2025

---

# PHP Warning

 *  Resolved [firafiki](https://wordpress.org/support/users/firafiki/)
 * (@firafiki)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-warning-529/)
 * Hi,
 * i keeps on having error after i click Save Changes in Settings. Just occur few
   days ago, suddenly, I couldn’t figure out why and how to fix this 🙁
 * PHP Warning: foreach() argument must be of type array|object, null given in /
   home/taikogrp/public_html/webtest2/SBIS/wp-content/plugins/seatreg/php/SeatregDataValidation.
   php on line 414
 * Anyone that have any idea please help 🙂
    -  This topic was modified 1 year, 2 months ago by [firafiki](https://wordpress.org/support/users/firafiki/).

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Siim Kirjanen](https://wordpress.org/support/users/thesiim/)
 * (@thesiim)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-warning-529/#post-18335130)
 * Hey
   Does that error/warning prevents saving settings?
 *  Thread Starter [firafiki](https://wordpress.org/support/users/firafiki/)
 * (@firafiki)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-warning-529/#post-18335884)
 * Sadly yes🥺 I couldn’t save the settings
 *  Plugin Author [Siim Kirjanen](https://wordpress.org/support/users/thesiim/)
 * (@thesiim)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-warning-529/#post-18336450)
 * Updated the plugin to version 1.56.6
   Can you update and see if it made a difference?
   I think there is something wrong with your custom fields.
 *  Thread Starter [firafiki](https://wordpress.org/support/users/firafiki/)
 * (@firafiki)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-warning-529/#post-18338331)
 * Hi,
 * Yes, still error
 * Custom fields not array
 * However, the error_log has no error as previous error
 * Before I get those error, 1st error I get was:
 * WordPress database error Table ‘taikogrp_wp956.wpki_seatreg_api_tokens’ doesn’t
   exist for query SELECT * FROM wpki_seatreg_api_tokens WHERE registration_code
   = ‘7945953498’ made by do_action(‘seatreg_page_seatreg-options’), WP_Hook->do_action,
   WP_Hook->apply_filters, seatreg_create_options, seatreg_generate_settings_form,
   SeatregApiTokenRepository::getRegistrationApiTokens
 * So, I click Create API Token.
 * Then I get this error:
 * WordPress database error Unknown column ‘registration_code’ in ‘field list’ for
   query INSERT INTO `wpki_seatreg_api_tokens` (`registration_code`, `api_token`)
   VALUES (‘7945953498’, ‘1365254393’) made by do_action(‘wp_ajax_seatreg_create_api_token’),
   WP_Hook->do_action, WP_Hook->apply_filters, seatreg_create_api_token, SeatregPublicApiService::
   insertApiToken
 * So, I manually add the table wpki_seatreg_api_tokens with column `registration_code`,`
   api_token`
 * Then 3rd error was:
 * foreach() argument must be of type array|object, null given in /home/taikogrp/
   public_html/webtest2/SBIS/wp-content/plugins/seatreg/php/SeatregDataValidation.
   php on line 414
 * Today, after updated, my error log has no error but I could not save the settings.
 * Thanks and regards,
 * Fira
 *  Plugin Author [Siim Kirjanen](https://wordpress.org/support/users/thesiim/)
 * (@thesiim)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-warning-529/#post-18338683)
 * Strange. Cant think of a reason why the database tables were not created.
   Have
   you created any custom fields?
 *  Thread Starter [firafiki](https://wordpress.org/support/users/firafiki/)
 * (@firafiki)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-warning-529/#post-18340344)
 * No I did not. This was created at wordpress Cpanel. Strangely, when I try to 
   use in my localhost SeatReg plugin, I did not face this issues. I still trying
   to figure it out what cause the issues. Will update here if I found the root 
   cause.
 * Thanks for your support.
 *  Thread Starter [firafiki](https://wordpress.org/support/users/firafiki/)
 * (@firafiki)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-warning-529/#post-18345018)
 * Hi,
 * Today the error message was no longer there and I can save the setting.
 * Turns out I just need to turn on Curl Extension.
 * It was turn on before for version PHP 8.0, after I’ve upgraded PHP 8.3, it no
   longer support version 8.3.
 * Problem solved.
 * Thanks and regards,
 * Fira
 *  [amrfarahat](https://wordpress.org/support/users/amrfarahat/)
 * (@amrfarahat)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-warning-529/#post-18371948)
 * Please give me more details i have the same issue and i couldn’t save any changes!
   when i click save am getting empty error page??
    -  This reply was modified 1 year, 2 months ago by [amrfarahat](https://wordpress.org/support/users/amrfarahat/).
 *  Thread Starter [firafiki](https://wordpress.org/support/users/firafiki/)
 * (@firafiki)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-warning-529/#post-18372023)
 * Hi,
 * Yea, same issue, previously I can’t save anything.
 * Basically I just enable the Curl Extension then the problem solved.
 * Depends on the platform enabling Curl Ext, might be different.
 *  [amrfarahat](https://wordpress.org/support/users/amrfarahat/)
 * (@amrfarahat)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-warning-529/#post-18372051)
 * Please give me a screenshot or send the stept.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://ps.w.org/seatreg/assets/icon-128x128.png?rev=2542994)
 * [SeatReg](https://wordpress.org/plugins/seatreg/)
 * [Support Threads](https://wordpress.org/support/plugin/seatreg/)
 * [Active Topics](https://wordpress.org/support/plugin/seatreg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seatreg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seatreg/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [amrfarahat](https://wordpress.org/support/users/amrfarahat/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/php-warning-529/#post-18372051)
 * Status: resolved