Backend log: PHP Warning: array_push() expects parameter 1 to be array, null given in /home/******/domains/******/public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/lib/tcpdf/tcpdf.php on line 18255\n, referer: https://www.l******/wp-admin/post.php?post=219944&action=edit
What does it mean and how do I solve this?
]]>Warning: array_push() expects parameter 1 to be array, null given in /data/web/virtuals/80757/virtual/www/domains/aproudlove.com/wp-content/plugins/jetpack/modules/omnisearch/omnisearch-posts.php on line 17
Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/80757/virtual/www/domains/aproudlove.com/wp-content/plugins/jetpack/modules/omnisearch/omnisearch-posts.php:17) in /data/web/virtuals/80757/virtual/www/domains/aproudlove.com/wp-includes/pluggable.php on line 1178
Can you help please?
Many thanks
Andrew
https://www.ads-software.com/plugins/jetpack/
]]>Any suggestions to help would be great! Thank you.
https://www.ads-software.com/plugins/thinktwit/
]]>Is it normal to get this in the login screen when someone tryes to use the old wp-admin after you’ve alredy changed it to your own?
The thing that shows on my 404 page is:
Warning: array_push() expects parameter 1 to be array, null given in /home/…/public_html/wp-content/themes/…/functions.php on line 1009
https://www.ads-software.com/plugins/all-in-one-wp-security-and-firewall/
]]>I have some issue with the wordpress Sessions.. I used the standard PHP $_SESSION[‘cart’][] = value to add an item to a session array. this works fine with plain php file but when i use the same file and code within the wordpress plugin its no longer working..
the output always shows 1 item even though i already added more items in the cart using this.. i also used the php array_push to insert an item but still no luck..
can somebody tell me how to solved this, i will be glad if there are people who can help me with this… peace and thanks in advance..
]]>I’ve been coding for 13 hours today and I’m probably missing something here. What I’m trying to do here is looping trough all the posts of one taxonomy, then get the terms of each post from the other taxonomy and put them in an array. If I echo $termname in the following code it works; it shows a list of every term. If I try to push them in an array, only the last term seems to be in the array.
$query = new WP_Query( $args );
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
$terms = get_the_terms( $post->ID, 'vendor' );
$stack = array();
foreach( $terms as $term ) {
$termname = $term->name;
array_push($stack, $termname);
}
}
} else {
// no posts
}
wp_reset_postdata();
print_r($stack);
($args are set and correct)
https://pastebin.com/Zf9GbXLe
]]>I need to accomplish something like this:
for ( $i = 0; $i < $darray['max']; $i++ ) {
$list=$darray[$i]['pID'];
array_push($stack,$list);
}
$args= array('p=' => $stack);
$temp_query = new WP_Query($args);
while ($temp_query->have_posts()) : $temp_query->the_post();
This will work with pages using the codex mentioned posts__in, but how can I solve this with straight post IDs ?
Thanks in advance!
]]>