• Resolved firafiki

    (@firafiki)


    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 3 weeks, 1 day ago by firafiki.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author thesiim

    (@thesiim)

    Hey
    Does that error/warning prevents saving settings?

    Thread Starter firafiki

    (@firafiki)

    Sadly yes?? I couldn’t save the settings

    Plugin Author thesiim

    (@thesiim)

    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

    (@firafiki)

    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 thesiim

    (@thesiim)

    Strange. Cant think of a reason why the database tables were not created.
    Have you created any custom fields?

    Thread Starter firafiki

    (@firafiki)

    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

    (@firafiki)

    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

    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 2 days, 22 hours ago by amrfarahat.
    Thread Starter firafiki

    (@firafiki)

    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.

    Please give me a screenshot or send the stept.

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.