Debug in WP backend

The warning states the issue is coming from custom code as in core WP no function as add_role_caps_to_job_agent exists. Try searching for add_role_caps_to_job_agent in wp-content, to see how this function is getting called and fix or uncomment the call. The other two notices will disappear once the first notice is solved as WP is trying … Read more

Cannot modify header information – headers already sent during plugin activation

Since the standard redirection works, I figured the conflict must be with TGM plugin activation already hooking to activated_plugin and producing output and thus preventing the redirect… Therefore the solution was to ensure that the plugin activation function hook was added to an earlier priority than the (silent) default of 10 most probably used by … Read more

Allow user to choose header style

Do you want this to be an option per page? Or side wide. If first, look into this: https://www.advancedcustomfields.com/ If second, look into this: https://blog.templatetoaster.com/wordpress-settings-api-creating-theme-options/

setcookie() issues on running with HTTPS on WordPress

Both examples should work fine if your WordPress site is running on https://. However, I would recommend you set up the cookies by using available constants and functions provided by WordPress, it makes things more organized. See example below: setcookie( ‘lat’, sanitize_text_field( $_POST[‘lat’] ), strtotime( ‘+14 days’ ), “https://wordpress.stackexchange.com/”, esc_COOKIE_DOMAIN, is_ssl(), true ); Notice that … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)