PHP Warning: Invalid argument supplied for foreach() in /home/padtvro/public_html/wp-content/themes/claudia/content.php on line 30

I have a problem, it is generated in woprdpree in cpanel error log this error: PHP Warning: Invalid argument supplied for foreach () in /home/padtvro/public_html/wp-content/themes/claudia/content.php on line 30 If I delete it, it appears again in 6-7 hours. What’s the problem?

<section id="contents" class="clearfix"><div class="row main_content"><div class="container content_wraper"><?php the_breadcrumb(); ?><div class="grid_8" id="content"><div class="widget_container content_page"><?php require_once dirname(__FILE__) . '/include/cat.php'; ?>  </div></div><div class="grid_4 p7ehc-a" id="sidebar"> <?php $  ge_sidebar = '';                  if (is_search()) {                       $  ge_sidebar = of_get_option('se_sidebar','');                     }else if(is_category() ) {                          $  category = get_the_category();                                               $  cn_sidebar ='';                         foreach($  category as $  ca_id) {                             if(empty($  cn_sidebar)) { $  cn_sidebar = of_get_option('cat_'.$  ca_id->term_id);}                                                        }                          if(empty($  cn_sidebar)) {                             $  ge_sidebar = of_get_option('cat_sidebar','');                         } else { $  ge_sidebar = $  cn_sidebar; }                       } else if(is_author() ) {                          $  ge_sidebar = of_get_option('au_sidebar','');                      }else if(is_tag() ) {                          $  tags = get_the_tags();                                               $  cn_sidebar ='';                         foreach($  tags as $  tg_id) {                             if(empty($  cn_sidebar)) { $  cn_sidebar = of_get_option('tag_'.$  tg_id->term_id);}                                                       }                          if(empty($  cn_sidebar)) {                             $  ge_sidebar = of_get_option('tag_sidebar','');                         } else { $  ge_sidebar = $  cn_sidebar; }                     }                                   $  dyn_sidebar ='';                 if(!empty($  ge_sidebar)) {   $  dyn_sidebar = $  ge_sidebar; };                                foreach ( $  GLOBALS['wp_registered_sidebars'] as $  sidebar ) {                     if($  sidebar['name'] == $  dyn_sidebar)                         {                              $  dyn_sidebar = $  sidebar['id'];                         }                 }                   if(!empty($  dyn_sidebar)) {                     if (is_active_sidebar($  dyn_sidebar)) : dynamic_sidebar($  dyn_sidebar);                     endif;                   } else{                     if (is_active_sidebar('center-sidebar')) : dynamic_sidebar('center-sidebar');                     endif;                 }      ?></div><div class="clear"></div></div></div></section>  

Invalid Menu Items

I told the question on youtube video

also I tell the question here again:

I cant add my taxonomies to menu except 000 taxonomy.I dont know why but it works:

the error : invalid items… ( red showing as you can see on youtube video )

this one works:

function deneme() {      // Add new taxonomy, make it hierarchical like categories     //first do the translations part for GUI          $  labels = array(             'name' => _x( '000', 'taxonomy general name' ),             'singular_name' => _x( '000', 'taxonomy singular name' ),             'search_items' =>  __( '000' ),             'all_items' => __( 'All Locations' ),             'parent_item' => __( 'Parent Locations' ),             'parent_item_colon' => __( 'Parent Location:' ),             'edit_item' => __( 'Edit Location' ),             'update_item' => __( 'Update Location' ),             'add_new_item' => __( 'Add New Location' ),             'new_item_name' => __( 'New Topic Location' ),             'menu_name' => __( '000' ),         );      // Now register the taxonomy          register_taxonomy('000',array('post'), array(             'hierarchical' => true,             'labels' => $  labels,             'show_ui' => true,             'show_admin_column' => true,             'query_var' => true,             'show_in_rest' => true,             'rewrite' => true,             'rewrite' => array( 'slug' => '000' ),             'has_archive' => true,         ));      }      add_action( 'init', 'deneme', 0 ); 

this one doesnt work:

// 2. ekleme  function masallah() {  // Add new taxonomy, make it hierarchical like categories //first do the translations part for GUI      $  labels = array(         'name' => _x( 'Districts', 'taxonomy general name' ),         'singular_name' => _x( 'District', 'taxonomy singular name' ),         'search_items' =>  __( 'Search Districts' ),         'all_items' => __( 'All Districts' ),         'parent_item' => __( 'Parent Districts' ),         'parent_item_colon' => __( 'Parent District:' ),         'edit_item' => __( 'Edit District' ),         'update_item' => __( 'Update District' ),         'add_new_item' => __( 'Add New District' ),         'new_item_name' => __( 'New Topic District' ),         'menu_name' => __( 'Districts' ),     );  // Now register the taxonomy      register_taxonomy('Districts',array('post'), array(         'hierarchical' => true,         'labels' => $  labels,         'show_ui' => true,         'show_admin_column' => true,         'query_var' => true,         'show_in_rest' => true,         'rewrite' => true,         'rewrite' => array( 'slug' => 'districts' ),         'has_archive' => true,     ));  }  add_action( 'init', 'masallah', 0 ); 

Invalid Menu Items – The most interesting question


The question needs it so I captured the error.It is necessary so please watch it.

https://youtu.be/lME3lY-kNbA if it doesnt open, please try this:

I told the question on youtube video so I share only the code like what I said on video.

I hear that video,video,video are you youtuber? 😀 no, it needed

this one works:

function deneme() {      // Add new taxonomy, make it hierarchical like categories     //first do the translations part for GUI          $  labels = array(             'name' => _x( '000', 'taxonomy general name' ),             'singular_name' => _x( '000', 'taxonomy singular name' ),             'search_items' =>  __( '000' ),             'all_items' => __( 'All Locations' ),             'parent_item' => __( 'Parent Locations' ),             'parent_item_colon' => __( 'Parent Location:' ),             'edit_item' => __( 'Edit Location' ),             'update_item' => __( 'Update Location' ),             'add_new_item' => __( 'Add New Location' ),             'new_item_name' => __( 'New Topic Location' ),             'menu_name' => __( '000' ),         );      // Now register the taxonomy          register_taxonomy('000',array('post'), array(             'hierarchical' => true,             'labels' => $  labels,             'show_ui' => true,             'show_admin_column' => true,             'query_var' => true,             'show_in_rest' => true,             'rewrite' => true,             'rewrite' => array( 'slug' => '000' ),             'has_archive' => true,         ));      }      add_action( 'init', 'deneme', 0 ); 

and this is the problem source:

nowadays, I select prayer for functions names 😀 such as masallah ( I hope the god protect ) or insallah ( I hope God will help to become real ) but yes I am here to ask 😀

// 2. ekleme  function masallah() {  // Add new taxonomy, make it hierarchical like categories //first do the translations part for GUI      $  labels = array(         'name' => _x( 'Districts', 'taxonomy general name' ),         'singular_name' => _x( 'District', 'taxonomy singular name' ),         'search_items' =>  __( 'Search Districts' ),         'all_items' => __( 'All Districts' ),         'parent_item' => __( 'Parent Districts' ),         'parent_item_colon' => __( 'Parent District:' ),         'edit_item' => __( 'Edit District' ),         'update_item' => __( 'Update District' ),         'add_new_item' => __( 'Add New District' ),         'new_item_name' => __( 'New Topic District' ),         'menu_name' => __( 'Districts' ),     );  // Now register the taxonomy      register_taxonomy('Districts',array('post'), array(         'hierarchical' => true,         'labels' => $  labels,         'show_ui' => true,         'show_admin_column' => true,         'query_var' => true,         'show_in_rest' => true,         'rewrite' => true,         'rewrite' => array( 'slug' => 'districts' ),         'has_archive' => true,     ));  }  add_action( 'init', 'masallah', 0 ); 

Why do Invalid Host header errors exist, what are attackers trying to achieve?

I have recently launched a new django based api, and quite quickly, I started to receive INVALID_HOST_HEADER SOME RANDOM URL errors. My understanding is that this is caused by somebody manually changing the HOST header, or proxying my API through some other domain.

This is probably a basic question, but what is the point? What are they trying to achieve? Presumably it’s not a regular MITM attack, because it would be easy enough to correct the HOST header on its way out of the middle server, and they’re not doing so.

Is a spell suppressed or removed when the target temporarily becomes invalid?

Based on Jeremy Crawford’s tweet, if a target is under the effect of an ongoing spell, and then the target changes such that it is no longer a valid target, the spell no longer effects them.

But does the spell end, or is it merely suppressed?

For example, suppose a human has been charmed by a dominate person spell. A friendly wizard casts polymorph on them; they fail their save and get turned into a sheep. This makes their type change to Beast, which is an invalid target for the dominate person spell, and the charm effect ends. The next turn, the wizard chooses not to concentrate, so polymorph ends and the target pops back into human form.

Assuming the dominating caster has maintained their concentration (if possible), did the spell simply end when the target became invalid, or does being invalid just suppress the dominate spell, which reasserts itself once the target is once more valid, like it would in an antimagic field?

Invalid Argument foreach

Is this because of WordPress, PHP, or the Theme? (or some combination)

A client of mine has a WordPress site that’s been working just fine for years, but recently started getting the following errors pulling up in it’s sidebars:

Warning: Invalid argument supplied for foreach() in /wp-content/themes/epsilon/page-threecolumn.php on line 29

Been thinking it may have to do with upgrades to both WordPress and PHP. Theme is no longer supported. Here is what the code looks like in that area:

                <div class="col-234">                     <div class="sidebar left-sidebar">                             <?php                             $  leftsidebar = simple_fields_get_post_group_values($  post->ID, "Left Sidebar", false, 2);                             foreach ($  leftsidebar as $  value) {                              ?>                             <aside>                                 <h2> <?php echo $  value[1]; ?></h2>                                 <div>                                 <?php                                     if($  value[2]):                                         if (function_exists('cforms_insert')){                                              echo cforms_insert(do_shortcode($  value[2]));                                          } else {                                              echo do_shortcode($  value[2]);                                          }                                      endif;                                 ?>                                 </div>                             </aside>                             <?php } ?>                     </div>                 </div> 

I did not build the site. And while I am proficient in pure HTML, I know little about PHP. Is this just a syntax issue that can be resolved with some quick fixes? Or do I need to go out and install a completely new theme (which scares the heck out of me)?

Java assignment declaration valid or invalid [on hold]

Question: Why are the following assignments all invalid? Please can you explain why for each individual assignment. I had thought one or two of them were okay given we imported toyPackage.

Given the classes below, indicate whether the assignments are valid or invalid. Notice that we are using two packages.

package toyPackage; public class Toy { protected int size; static int max; public static final int temp = 10; }

package experiment; import toyPackage.*;

public class Driver { public static void main(String[] args) { Toy p = new Toy(); p.size = 10; /* Invalid / p.max = 20; / Invalid / Toy.max = 30; / Invalid / Toy.temp = 40; / Invalid */ } }

What are the security implications of invalid free()?


CVE-2009-5030

OpenJPEG: Heap memory corruption leading to invalid free

The tcd_free_encode function in tcd.c in OpenJPEG 1.3 through 1.5 allows remote attackers to cause a denial of service (memory corruption) and possibly execute arbitrary code via crafted tile information in a Gray16 TIFF image, which causes insufficient memory to be allocated and leads to an “invalid free”.


What are the security implications of the invalid free? How might it be abused or exploited in a security context?

My interest in information security eventually led to an interest in computer science in general, not the other way around: always being less interested in cause than effect.

I recently began trying my hand at writing C code. It’s going alright, but still amateur at best. Many of the lower level programming concepts (e.g. heap, memory management, etc.) continue to elude me to a certain extent.

I’m not particularly interested in the specific example provided above. It’s just the most recent example (although patched long ago) to inadvertently come across my desk. Anyway, it’s a term I’m all too familiar with, from reading and writing reports, yet I have no more than a vague or abstract understanding of what it really implies. Despite the frequency of occurrence, it seems considerably neglected in the common literature. The reports for the CVE above mention remote arbitrary code execution, but it seems to be in addition to the invalid free – the relationship is unclear.


Similar Terms

  • Double Free
  • Use After Free

Getting error>: ‘invalid use of non-static member function’ when passing a child class method to a father (public-inherited) method

Hope everybody is doing just fine.

I’m writing this piece of code where i have a class called XZStage (child) that inherits every public method from the library/class SerialCommand (father) and on a method of the XZStage i’m passing to a father method, a child method as argument.

The error i’m getting is: ‘invalid use of non-static member function’

A little piece of advice to do a refined search would be great.

What’s the best practice for screen navigation after invalid user input?

Consider an Angular app with many user inputs over screens A, B and C. Screen C needs valid inputs from A and B; B from A only; and A is independent. Suppose while on screen B the user enters invalid inputs.

Question: What navigation should I support for B in this case?

My current thinking is to disallow navigation to C due to data validity issues. But what about navigating back to B? On the one hand, there are no validity issues, and the user may want to look up screen A to help with screen B inputs. On the other hand, this would complicate the app’s state management. An alternative is to disallow such navigation, possibly with an option to restore the last valid inputs at B. As I lack experience in UX, I’d appreciate answers to help me with this trade-off.