Forum Replies Created

Viewing 15 replies - 1 through 15 (of 227 total)
  • Thread Starter ziegel

    (@ziegel)

    My two cents: change it to run on midnight, and not every 24 hours from the midnight of activation day.

    The function I have placed on the top of the post, reflects, that coding notion of running task every exact 24 hours from first time, disregarding the convention used on the first time, to be at midnight, and containing reporting text, saying the report is for the “day” or something like that.

    Thread Starter ziegel

    (@ziegel)

    Hi,

    The problem I face is, after a time change of one hour in my country, due to Day Light Saving Time, the daily notification email NFW sends, is sent at 23:00 and not on midnight 00:00. This seems to me as function or data base value storing issue related to the Plugin. In previous years, I solved the issue by removing the plugin and reinstalling it.

    The same logic as in the above function, which seem to me, to be counting 24 hours, disregarding the time itself in real time, is what’s behind the problem.

    May I ask if the problem is now well described?

    Thread Starter ziegel

    (@ziegel)

    Hi,

    May I ask if you could please improve your plugin, unrelated to provided info from generating email external plugin, to over-ride the reply to address, so both are identical, and allowing the Plugin setting of the DOMAIN ‘Mail From’ to be that used overriding any other if existing, as shown for the email reply address in the below two options:

    Option 1

    $headers[] = "From: ".$fromName." <".$fromAddr.">";
    $headers[] = "Return-Path: <".$fromAddr.">";
    $headers[] = "Sender: ".$fromName." <".$fromAddr.">";

    Option 2

    ' Set the return path email address
    Dim returnPath As String
    returnPath = "[email protected]"
    
    ' Add the return path email address as a reply recipient
    olMail.ReplyRecipients.Add returnPath

    Hi @jules-colle and @jperksmower ,

    I have also gotten errors in the PHP error log. Debug mod was not enabled. The error messages were as following:

    [05-May-2023 12:55:45|] PHP Warning:  Undefined array key "_wpcf7cf_hidden_group_fields" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 260
    [05-May-2023 12:55:45|] PHP Warning:  Undefined array key "_wpcf7cf_hidden_groups" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 269
    [05-May-2023 12:55:45|] PHP Warning:  Undefined array key "_wpcf7cf_visible_groups" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 270
    [05-May-2023 12:55:45|] PHP Warning:  Undefined array key "_wpcf7cf_repeaters" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 271
    [05-May-2023 12:55:45|] PHP Warning:  Undefined array key "_wpcf7cf_steps" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 272
    [05-May-2023 15:26:31|] PHP Warning:  Undefined array key "_wpcf7cf_hidden_group_fields" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 260
    [05-May-2023 15:26:31|] PHP Warning:  Undefined array key "_wpcf7cf_hidden_groups" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 269
    [05-May-2023 15:26:31|] PHP Warning:  Undefined array key "_wpcf7cf_visible_groups" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 270
    [05-May-2023 15:26:31|] PHP Warning:  Undefined array key "_wpcf7cf_repeaters" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 271
    [05-May-2023 15:26:31|] PHP Warning:  Undefined array key "_wpcf7cf_steps" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 272
    [05-May-2023 20:20:11|] PHP Warning:  Undefined array key "_wpcf7cf_hidden_group_fields" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 260
    [05-May-2023 20:20:11|] PHP Warning:  Undefined array key "_wpcf7cf_hidden_groups" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 269
    [05-May-2023 20:20:11|] PHP Warning:  Undefined array key "_wpcf7cf_visible_groups" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 270
    [05-May-2023 20:20:11|] PHP Warning:  Undefined array key "_wpcf7cf_repeaters" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 271
    [05-May-2023 20:20:11|] PHP Warning:  Undefined array key "_wpcf7cf_steps" in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 272

    Hi @maybellyne @davesmith586,

    This might be coming from the Yoast Plugin core code, which seems to include in the file named ‘ndexable-presentation.php‘, the below configuration:

    protected function get_base_robots() {
    	return [
    		'index'             => ( $this->model->is_robots_noindex === true ) ? 'noindex' : 'index',
    		'follow'            => ( $this->model->is_robots_nofollow === true ) ? 'nofollow' : 'follow',
    		'max-snippet'       => 'max-snippet:-1',
    		'max-image-preview' => 'max-image-preview:large',
    		'max-video-preview' => 'max-video-preview:-1',
    	];
    }

    Apparently, it seems as the Bing search engine does NOT respect the ‘-1’ value as no limit, but as an error. It states for it:

    Meta robots tag contains restrictive robots directives
    - 1 instance found

    Which comes from the below line added to the website code:

    <meta name='robots' content='index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' />

    Hi?@torivt65,

    ?‘taxonomy-faq_cat.php‘ file , is where in our theme, the call for the faq questions according to their categories is done.

    On this file’s very beginning you may see the PHP call:

    $current_term_meta = get_queried_object();

    According to explanation, the ‘object’ in questions, which is clalled, is that, which is the subject of the PHP page, where that function is activated. See the comment below.

    Here is its content:

    <?php
    if (!defined('ABSPATH')) exit;
    
    
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    header("Cache-Control: no-cache");
    header("Pragma: no-cache");
    
    $current_term_meta = get_queried_object();
    //$current_terms_meta = get_the_terms($current_term_meta->ID, 'faq_cat');
    
    
    
    if (!empty($current_term_meta)){
    	
    	if ($current_term_meta->term_id == "6") {
    		$changed_title = "Currenge – FAQ - Getting Started";
    		$changed_description = "Here we will provide answers to questions you may have, regarding how to start using Currenge as a client.";}
    		
    	elseif ($current_term_meta->term_id == "23") {
    		$changed_title = "?????&#x27 - ???? ????? - ????? ?????";
    		$changed_description = "??? ???? ?????? ?????? ????? ??? ???, ???? ????? ?? ????? ???? ?? ?????&#x27.";}		
    		
    	elseif ($current_term_meta->term_id == "7") {
    		$changed_title = "Currenge – FAQ - Sending in Money";
    		$changed_description = "Here we will provide answers to questions you may have, regarding how to send money for Currenge to facilitate your requested transaction.";}
    		
    	elseif ($current_term_meta->term_id == "24") {
    		$changed_title = "?????&#x27 - ???? ????? - ????? ??? ?????";
    		$changed_description = "??? ???? ?????? ?????? ????? ?? ???, ???? ???? ????? ??? ?? ?????&#x27, ????? ???? ???? ?????? ????.";}		
    		
    		
    	elseif ($current_term_meta->term_id == "8") {
    		$changed_title = "Currenge – FAQ - Converting Money";
    		$changed_description = "Here we will provide answers to questions you may have, regarding how we may convert your money, as part of a requested transaction.";}
    		
    	elseif ($current_term_meta->term_id == "25") {
    		$changed_title = "?????&#x27 - ???? ????? - ???? ??? ????";
    		$changed_description = "??? ???? ?????? ?????? ????? ?? ???, ???? ???? ?? ?????&#x27 ????? ????? ??? ????, ???? ?????? ???? ?????? ????.";}		
    		
    	elseif ($current_term_meta->term_id == "9") {
    		$changed_title = "Currenge – FAQ - Sending out Money";
    		$changed_description = "Here we will provide answers to questions you may have, regarding how we may transfer your money, as part of a requested transaction.";}
    		
    	elseif ($current_term_meta->term_id == "26") {
    		$changed_title = "?????&#x27 - ???? ????? - ????? ??? ??????";
    		$changed_description = "??? ???? ?????? ?????? ????? ?? ???, ???? ???? ?? ?????&#x27 ????? ?????? ??? ???? ?? ????, ???? ?????? ???? ?????? ????.";}
    		
    	elseif ($current_term_meta->term_id == "2683") {
    		$changed_title = "Currenge – FAQ - About Currenge";
    		$changed_description = "Currenge App is a money transfer and convert service, at a ‘tiny’ spread, operating from Israel.";}
    		
    	elseif ($current_term_meta->term_id == "6694") {
    		$changed_title = "?????&#x27 - ???? ????? - ????? ?????&#x27";
    		$changed_description = "????????' ??? ????????? ????? ????? ????? ?????, ??????? ??? ????, ?????? ??????.";}		
    		
    		
    	elseif ($current_term_meta->term_id == "2691") {
    		$changed_title = "Currenge – FAQ - Saving";
    		$changed_description = "How much money Currenge may instantly enable me of saving, and what fee it charges?";}
    		
    	elseif ($current_term_meta->term_id == "6722") {
    		$changed_title = "?????&#x27 - ???? ????? - ??????";
    		$changed_description = "??? ??? ????????' ????? ????? ?? ????? ????? ?????, ????? ???? ??? ?????";}		
    		
    		
    	elseif ($current_term_meta->term_id == "2695") {
    		$changed_title = "Currenge – FAQ - Offering better rates than a bank branch";
    		$changed_description = "What enables Currenge offering better rates than a bank branch, converting your money, integrally with a transfer?";}
    		
    	elseif ($current_term_meta->term_id == "6725") {
    		$changed_title = "?????&#x27 - ???? ????? - ????? ????? ?????? ???";
    		$changed_description = "?? ????? ?????????' ????? ???? ??? ????? ???? ??? ???? ????";}		
    
    			
    	elseif ($current_term_meta->term_id == "2711") {
    		$changed_title = "Currenge – FAQ - Transactions's Currency Rate";
    		$changed_description = "On what rate Currenge converts money for me, in a transaction integrated with a transfer?";}
    		
    	elseif ($current_term_meta->term_id == "670") {
    		$changed_title = "?????&#x27 - ???? ????? - ??? ???? ?? ????? ????";
    		$changed_description = "????? ??? ?????' ???? ????? ?????, ????? ??????? ???????";}			
    			
    
    	elseif ($my_current_lang=='he') {
    		$changed_title = "?????&#x27 - ???? ?????";
    		$changed_description = "??? ???? ?????? ?????? ????? ??? ???, ???? ????? ??? ?????? ?????? ??????? ?????&#x27.";
    	}
    	
    	
    	else{
    		$changed_title = "Currenge – FAQ Support Center";
    		$changed_description = "Welcome to the Currenge Support center. Please choose a support category, from the categories listed below.";}
    
    	}
    
    
    $robots_index = 'noarchive';
    
    $my_current_lang = apply_filters( 'wpml_current_language', NULL ); 
    if ($my_current_lang=='en'){
    	include 'header-faq-category.php';
    	//get_header('faq-category');
    }
    if ($my_current_lang=='he'){
    	include 'header-faq-category-he.php';	
    	//get_header('faq-category-he');
    }
    
    ?>
    
    
    
    
    <?php $current_term = get_queried_object(); ?>
    
    <div class="container">
    
    <?php  ob_start(); ?>
    [vc_row custom_class="hidden-xs" css=".vc_custom_1526390415971{padding-top: 84px;background-color: #ffffff !important;}"]
    	[vc_column el_class="faq"]
    		[vc_column_text el_class="faq-header"]
    			<h1 class="page-titel" style="text-align: center;"><?php echo $current_term->name ?></h1>
    		[/vc_column_text]
    	[/vc_column]
    [/vc_row]
    [vc_section full_width="stretch_row" el_class="faq-box"]
    	[vc_row]
    		[vc_column]
    			[vc_column_text]
    
    			<div class="container-box desktop-f">
    				<div class="tab hidden-sm">
    					<ul>
    						<?php
    
    						// var_dump($current_term);
    						$terms = get_terms(array(
    							'taxonomy' => 'faq_cat',
    							'hide_empty' => true,
    							'orderby' => 'id',
    							'order' => 'ASC',
    						));
    						foreach ($terms as $term):
    						?>
    						<li>
    							<a href="<?php echo get_term_link($term) ?>" class="tablinks<?php echo $term->term_id === $current_term->term_id ? ' active' : '' ?>"><?php echo $term->name ?></a>
    						</li>
    					<?php endforeach; ?>
    					</ul>
    					<a href="javascript: void 0" class="a-btn user-question-btn user-question-btn-toggle submit-english">Submit a Question</a><a href="javascript: void 0" class="a-btn user-question-btn user-question-btn-toggle submit-hebrew">???? ?????</a>
    				</div>
    				<div class="tabcontent-box" id="taxonomy-faq-identify">
    					<ul class="ul-content">
    					<?php
    					$query = new WP_Query(array(
    						'post_type' => 'faq_questions',
    						'orderby' => 'menu_order',
    						'order' => 'ASC',
    						'tax_query' => array(
    							array( 
    								'taxonomy' => $current_term->taxonomy,
    								'field' => 'slug',
    								'terms' =>	$current_term->slug
    
    							)
    						)
    					));
    					while ( $query->have_posts() ) : $query->the_post(); ?>
    						<li>
    							<a href="<?php the_permalink() ?>" class="tabcontent-link"><?php the_title() ?></a>
    						</li>
    					<?php endwhile; ?>
    					</ul>
    					<div class="user-question hidden">
    						<div class="user-question-form">
    							<?php 
    							if ($my_current_lang=='en'){
    								echo do_shortcode('[contact-form-7 id="270" title="faq" html_id="faq-contact-form"]');}								
    							?>
    						</div>
    						<div class="user-question-form user-question-form-hebrew" style="direction: rtl!important; text-align: right!important;">
    							<?php 		
    							if ($my_current_lang=='he'){
    								echo do_shortcode('[contact-form-7 id="6818" title="faq_hebrew" html_id="faq-contact-form-hebrew" lang="he-IL" dir="rtl"]');}						
    							?>
    						</div>
    
    						<div class="user-question-back">
    							<a href="javascript: void 0" class="a-btn-tr user-question-btn-toggle user-question-btn-toggle-english">Back</a>
    							<a href="javascript: void 0" class="a-btn-tr user-question-btn-toggle user-question-btn-toggle-hebrew">?????</a>
    						</div>
    					</div>
    				</div>
    			</div>
    			<div class="mobile-f"></div>
    			[/vc_column_text]
    		[/vc_column]
    		[/vc_row]
    	[/vc_section]
    	
    <?php
    $content = ob_get_clean();
    echo do_shortcode($content);
    ?>
    </div>
    <a href="javascript: void 0" class="a-btn user-question-btn user-question-btn-toggle user-question-btn-sm submit-english">Submit a Question</a>
    <a href="javascript: void 0" class="a-btn user-question-btn user-question-btn-toggle user-question-btn-sm submit-hebrew">???? ?????</a>
    
    	<div class="thanks-message">
    		<div class="thanks-message-x">
    			<img src="<?php echo site_url() ?>/wp-content/uploads/2018/04/Icon-30-X-sign-white-2.svg" alt="X Icon">
    		</div>
    	<div class="thanks-message-text text-center thank_you_message_english">
    		<p class="thanks-message-text-titel thank_you_message_english">Thank you for your message</p>
    		<p  class="thank_you_message_english">We will respond as soon as possible.</p>
    	</div>
    	<div class="thanks-message-text text-center thank_you_message_hebrew">
    		<p class="thanks-message-text-titel thank_you_message_hebre">???? ??? ?? ???????</p>
    		<p class="thank_you_message_hebre">??? ????? ????? ?? ?????.</p>
    	</div>
    	</div>
    
    <?php get_footer();
    

    Comment regarding the function on the top of the above PHP file:

    The “currently-queried object” means the object that is the subject of the webpage:
    
    – On a category archive, tag archive, or other taxonomy archive page, it will return the WP_Term object of the current category, tag, or other term.
    – If you have set a posts page where your basic posts are displayed, get_queried_object() will return the WP_Post object of that page.
    – On post type archive pages, it will return the WP_Post_Type object of the given post type.
    – On an author archive page, it will return the WP_User object of that author.
    – On any singular page (a single post, a single page, or a post in a custom post type), it will return the WP_Post object of that post or page.
    
    Be careful not to use get_queried_object() and get_post() or global $post interchangeably. On a singular post, those will all return the same thing. But, for example, if you have a page called “Blog” that displays your posts, get_queried_object() will return the “Blog” page whereas get_post() will return the current post in the loop.
    Thread Starter ziegel

    (@ziegel)

    Hi @deliciousbrains,

    Thanks for the advise regarding rolling back to an older plugin version. Although it did solve most problems, I still once in a day or two get an alert email saying the plugins cron fails.

    For functionality, I have set a serer level cron task to activate the wp-cron.php file once in 10 minutes, which add hock temporary solves the emails being queued, however this problem is still there. I suspect the rolling back didn’t fully solve the issue.

    May I ask if you can think of three:

    1. Solving root cause for the errors, which I’m still not aware of.
    2. coding the IF for the different data structure the error function may have as output according to errors existance or absence.
    3. A walk-around solution, which will enable a specific call for the server level ‘cron’ (event management? other?) that release the sending of queued emails, possibly according to identifying existence of an error reported, or by the status of emails being pended to queued.

    The cron error message received looks like this:

    Email Subject line:
    
    WP Offload SES - Cron not running
    
    Test:
    
    Hi,
    
    You're receiving this email because WP Cron doesn't appear to be running on example.com.
    
    Please see our cron setup doc for more details.

    BTW

    It’s kind of “funny” the alert email (and plugin test email as well) can be sent, however the queued emails cant.

    Which leads to the thought, of possibly you enabling SERVER to directly also send emails, on some circumstances, and not only the SES configuration service.

    • This reply was modified 1 year, 7 months ago by ziegel.
    • This reply was modified 1 year, 7 months ago by ziegel.

    Hi @torivt65,

    I’m not an experience developer. What I do for my self, is test solutions I find. Usually, after few trial an errors testing, which may take few hours, I solve various issues I confront.

    Reading your code, it looks Ok, however I can’t confirm it. I’m not aware of any other deep coded elements that I may have, which you may lack.

    Please note, that I do have the second element which is the “call” for the elements, and the configuration of them being called according to menu_order, which is now (again) controlled by either the plugin ‘drag and drop’ feature, or by changing the order on the wp_post MySQL data base for the element ‘faq_questions‘.

    Please do also note, that faq_questions was created as an element which duplicates WordPress “Post” feature. Possibly something alike should be done for you “products”, or possibly it was already have been done.

    The function you suggested went in the functions.php file.

    The “list_faq” which you see on functions.php, is now seen by me in two places, and not one. I have it there in:

    function list_faq() {
        register_post_type('faq_questions',
            array(
                'labels' => array(
                    'name' => __('FAQ'),
                    'singular_name' => __('FAQ')
                ),
                'public' => true,
                'has_archive' => true,
                'supports' => array('title', 'editor', 'thumbnail', 'excerpt' , 'page-attributes')
            )
        );
    }
    
    add_action('init', 'list_faq');
    
    function faq_taxonomy() {
        register_taxonomy(
            'faq_cat',  //The name of the taxonomy. Name should be in slug form (must not contain capital letters or spaces).
            array('faq_questions'),        //post type name
            array(
                'hierarchical' => true,
                'label' => 'Categories',  //Display name
                'query_var' => true
            )
        );
    }
    
    add_action('init', 'faq_taxonomy');

    I’m now looking into the WordPress panel to see where it’s mentioned there.

    I see it in the “Duplicate Post Options” under settigns, which creates the FAQ for me (there is also a Yoast plugin with a similar name).

    I also have a hidden private page named FAQ under the WordPress pages. That page is used by three PHP page files, for categories, and faq pages.

    Those are:

    archive-faq_questions.php which lists all faq questions in a certain language, however not seen.

    single-faq_questions.php which is used for the question to be opened.

    taxonomy-faq_cat.php which is used for the categories of the FAQ

    I also have four special header files:

    one for categories

    second for faq single questions

    and a duplication of the above for a second language translation.

    On the php files of pages I can define a different title and description for each FAQ according to its post number and category, which is called by the associated header specific file later on.

    This is how the file ‘single-faq_questions.php’ looks like:

    <?php 
    if (!defined('ABSPATH')) exit; 
     
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); 
    header("Cache-Control: no-cache"); 
    header("Pragma: no-cache"); 
     
     
    global $post; 
     
    if ($post->post_type == 'faq_questions'){ 
     
     if ($post->ID == "2715") { 
     $changed_title = "Currenge – FAQ - Beneficiary Bank Account"; 
     $changed_description = "How do I let Currenge know of beneficiary bank account to which it is asked to transfer money to?";} 
     
     elseif ($post->ID == "6693") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ???? ?? ?????"; 
     $changed_description = "???? ???? ?????? ?? ?????&#x27, ???? ????? ???? ??? ???? ?????? ?????";} 
     
     elseif ($post->ID == "2716") { 
     $changed_title = "Currenge – FAQ - Transfer Out of Money"; 
     $changed_description = "How is the transfer out of my money done";} 
     
     elseif ($post->ID == "6264") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ??? ??????&#x27"; 
     $changed_description = "???? ????? ????? ?????? ????? ??????&#x27";} 
     
     elseif ($post->ID == "2717") { 
     $changed_title = "Currenge – FAQ - Beneficiary bank details to provide"; 
     $changed_description = "What beneficiary bank details do I need to provide";} 
     
     elseif ($post->ID == "6697") { 
     $changed_title = "?????&#x27 - ???? ????? - ???? ????? ??? ?? ?????"; 
     $changed_description = "??? ????? ?? ????? ????? ??? ???? ??????&#x27";} 
     
     
     elseif ($post->ID == "2718") { 
     $changed_title = "Currenge – FAQ - Money Transfer Duration"; 
     $changed_description = "How long would it take for my money to reach my beneficiary";} 
     
     elseif ($post->ID == "6698") { 
     $changed_title = "?????&#x27 - ???? ????? - ??? ??? ?????"; 
     $changed_description = "??? ??? ???? ????? ?? ???? ????? ???? ?? ????? ???? ?? ?????";} 
     
     elseif ($post->ID == "2719") { 
     $changed_title = "Currenge – FAQ - Transaction request confirmation"; 
     $changed_description = "Can I get a confirmation for my transaction request execution";} 
     
     elseif ($post->ID == "6699") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ???? ?????"; 
     $changed_description = "??? ???? ???? ????? ?? ????? ????? ???????";} 
     
     elseif ($post->ID == "2720") { 
     $changed_title = "Currenge – FAQ - Served Countries"; 
     $changed_description = "What countries can I transfer out money to";} 
     
     elseif ($post->ID == "6700") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????? ????? ??????? ?????"; 
     $changed_description = "???? ?????? ???? ?????? ?????";} 
     
     elseif ($post->ID == "2721") { 
     $changed_title = "Currenge – FAQ - Transaction on the recipient bank account"; 
     $changed_description = "How would the transaction look like on the recipient bank account";} 
     
     elseif ($post->ID == "6701") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????? ?????? ?????"; 
     $changed_description = "???? ????? ??????? ????? ?????? ???? ?? ?????";} 
     
     elseif ($post->ID == "2722") { 
     $changed_title = "Currenge – FAQ - Preventing tax deduction on money transferred out of Israel"; 
     $changed_description = "What documents should I provide so there is no tax deduction on money transferred out of Israel";} 
     
     elseif ($post->ID == "6702") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????? ?????? ????? ?? ????? ?????? ?? ???? ??????"; 
     $changed_description = "???? ?????? ??? ???? ?? ??? ???? ????? ?? ????? ?? ????? ???????? ?? ???? ??????";} 
     
     elseif ($post->ID == "2710") { 
     $changed_title = "Currenge – FAQ - Currenge Conversion Process"; 
     $changed_description = "How does Currenge convert to-be transferred money";} 
     
     elseif ($post->ID == "6703") { 
     $changed_title = "?????&#x27 - ???? ????? - ???? ??????"; 
     $changed_description = "???? ?????&#x27 ????? ????? ???? ??????";} 
     
     elseif ($post->ID == "2711") { 
     $changed_title = "Currenge – FAQ - Currenge Conversion Rate"; 
     $changed_description = "Currenge - ON WHAT RATE CURRENGE CONVERTS MONEY FOR ME, IN A TRANSACTION INTEGRATED WITH A TRANSFER?";} 
     
     elseif ($post->ID == "6704") { 
     $changed_title = "?????&#x27 - ???? ????? - ??? ???? ??????"; 
     $changed_description = "????? ??? ?????&#x27 ???? ????? ?????, ????? ??????? ??????";} 
     
     
     elseif ($post->ID == "2713") { 
     $changed_title = "Currenge – FAQ - Converted Currencieis"; 
     $changed_description = "What currencies Currenge can convert, as part of a transfer";} 
     
     elseif ($post->ID == "6729") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????? ??????"; 
     $changed_description = "???? ?????? ?????&#x27 ????? ????? ?????? ?????";} 
     
     
     elseif ($post->ID == "2704") { 
     $changed_title = "Currenge – FAQ - Submitting written transaction request"; 
     $changed_description = "How should I submit my written transaction request to Currenge";} 
     
     elseif ($post->ID == "6706") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ???? ?????? ????"; 
     $changed_description = "???? ??? ?????? ??????&#x27 ?? ???? ?????? ????";} 
     
     
     elseif ($post->ID == "2705") { 
     $changed_title = "Currenge – FAQ - Transfering Money into Currenge Bank Account"; 
     $changed_description = "How should money be sent into Currenge bank account";} 
     
     elseif ($post->ID == "6708") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ????? ?? ????? ???? ?? ?????'"; 
     $changed_description = "???? ?? ?????? ????? ?? ????? ???? ?? ?????&#x27";} 
     
     elseif ($post->ID == "2712") { 
     $changed_title = "Currenge – FAQ - Saving calculator indicator assumptions"; 
     $changed_description = "What are assumptions underlying the potential saving calculator indicator";} 
     
     elseif ($post->ID == "6729") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ?????? ?????? ???????"; 
     $changed_description = "??? ????? ??????? ??????? ????? ????????? ?? ?????? ?????? ?????????";} 
     
     elseif ($post->ID == "2708") { 
     $changed_title = "Currenge – FAQ - Accepted Currencies"; 
     $changed_description = "What currencies does Currenge accept";} 
     
     elseif ($post->ID == "6711") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????? ???????"; 
     $changed_description = "???? ?????? ?????&#x27 ?????";} 
     
     elseif ($post->ID == "2683") { 
     $changed_title = "Currenge – FAQ - About Currenge"; 
     $changed_description = "About Currenge";} 
     
     elseif ($post->ID == "6694") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????"; 
     $changed_description = "????? ?????&#x27";} 
     
     elseif ($post->ID == "6129") { 
     $changed_title = "Currenge – FAQ - Currenge better rates than a bank branch"; 
     $changed_description = "What enables Currenge offering better rates than a bank branch, converting your money, integrally with a transfer";} 
     
     elseif ($post->ID == "6725") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????? ???? ?? ???? ????"; 
     $changed_description = "?? ????? ??????&#x27 ????? ???? ???? ????? ???? ??? ???? ???";} 
     
     
     elseif ($post->ID == "6130") { 
     $changed_title = "Currenge – FAQ - The way to compare Curreng and the bank"; 
     $changed_description = "How should I compare the costs of converting FX at a bank to converting it with Currenge";} 
     
     elseif ($post->ID == "6729") { 
     $changed_title = "?????&#x27 - ???? ????? - ???? ?????? ?????? ??? ???? ???? ??????&#x27"; 
     $changed_description = "???? ???? ?????? ?? ?????? ???? ???? ????? ??? ?? ??? ???? ??????? ?????&#x27";} 
     
     elseif ($post->ID == "2691") { 
     $changed_title = "Currenge – FAQ - Fees"; 
     $changed_description = "What are fees Currenge may charge, and how much money may it save for me";} 
     
     elseif ($post->ID == "6722") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????"; 
     $changed_description = "?? ????? ??????&#x27 ???? ???? ??? ??? ????? ?????";} 
     
     elseif ($post->ID == "2696") { 
     $changed_title = "Currenge – FAQ - When to Register"; 
     $changed_description = "Do I need to register at Currenge prior to transacting";} 
     
     elseif ($post->ID == "6713") { 
     $changed_title = "?????&#x27 - ???? ????? - ??? ??????"; 
     $changed_description = "??? ???? ???? ?????? ??? ?????&#x27 ???? ????? ????";} 
     
     elseif ($post->ID == "2699") { 
     $changed_title = "Currenge – FAQ - Firm Registration"; 
     $changed_description = "What is needed of a firm, so it can register with Currenge";} 
     
     elseif ($post->ID == "6716") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ????"; 
     $changed_description = "?? ???? ????? ??? ?????? ??? ?????&#x27";} 
     
     elseif ($post->ID == "2700") { 
     $changed_title = "Currenge – FAQ - Individual Registration"; 
     $changed_description = "What is needed of an individual, so it can register with Currenge";} 
     
     elseif ($post->ID == "6717") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ??? ????"; 
     $changed_description = "?? ???? ???? ???? ??? ?????? ??? ?????&#x27";} 
     
     elseif ($post->ID == "2702") { 
     $changed_title = "Currenge – FAQ - Contacting Currenge Urgently"; 
     $changed_description = "How can I contact Currenge with an urgent matter";} 
     
     elseif ($post->ID == "6719") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ??? ?????? ????"; 
     $changed_description = "???? ???? ????? ??? ?? ?????&#x27 ?????? ????";} 
     
     elseif ($post->ID == "2703") { 
     $changed_title = "Currenge – FAQ - Additional Questions"; 
     $changed_description = "I have another question which isn’t listed here, what should I do";} 
     
     elseif ($post->ID == "6721") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ??????"; 
     $changed_description = "?? ?? ???? ????? ????? ?????? ???. ?? ??? ???? ?????";} 
     
     
     
     elseif ($post->ID == "10020") { 
     $changed_title = "Currenge – FAQ - Client Online Identification and Verification"; 
     $changed_description = "Main stages in online identification and verification of a Currenge client";} 
     
     elseif ($post->ID == "10018") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ??????? ?????? ?????"; 
     $changed_description = "????? ??????? ?????? ????? ?? ???? ?????&#x27";} 
     
     
     elseif ($my_current_lang=='he') { 
     $changed_title = "?????&#x27 - ???? ?????"; 
     $changed_description = "??? ???? ?????? ?????? ????? ??? ???, ???? ????? ??? ?????? ?????? ??????? ?????&#x27.";} 
     
     else{ 
     $changed_title = "Currenge – FAQ Support Center"; 
     $changed_description = "Welcome to the Currenge Support center. Please choose a support category, from the below.";} 
     
     } 
     
    $robots_index = 'noarchive'; 
     
     
    $my_current_lang = apply_filters( 'wpml_current_language', NULL );  
    if ($my_current_lang=='en'){ 
     include 'header-faq-question.php'; 
     //get_header(''); 
    } 
    if ($my_current_lang=='he'){ 
     include 'header-faq-question-he.php'; 
     //get_header('he'); 
    } 
     
     
    ?> 
     
     
     
     
    <div class="container"> 
     
    <?php  ob_start(); ?> 
    [vc_row css=".vc_custom_1526390415971{padding-top: 84px;background-color: #ffffff !important;}"] 
     [vc_column el_class="faq hidden-sm"] 
     [vc_column_text el_class="faq-header"] 
     <h1 class="page-titel" id="page-titel-english" style="text-align: center;">Frequently Asked Questions</h1> 
     <h1 class="page-titel" id="page-titel-hebrew" style="text-align: center;">?????</h1> 
     [/vc_column_text] 
     [/vc_column] 
    [/vc_row] 
    [vc_section full_width="stretch_row" el_class="faq-box"] 
     [vc_row] 
     [vc_column] 
     [vc_column_text] 
     
     <div class="container-box desktop-f"> 
     <div class="tab hidden-sm"> 
     <ul> 
     <?php 
     
     $current_post = get_queried_object(); 
     $current_terms = get_the_terms($current_post->ID, 'faq_cat'); 
     $link = '..'; 
     if (count($current_terms)) { 
     $current_term = $current_terms[0]; 
     $link = get_term_link($current_term); 
     } 
     // var_dump($current_term); 
     $terms = get_terms(array( 
     'taxonomy' => 'faq_cat', 
     'hide_empty' => true, 
     'orderby' => 'id', 
     'order' => 'ASC', 
     )); 
     foreach ($terms as $term): 
     ?> 
     <li> 
     <a href="<?php echo get_term_link($term) ?>" class="tablinks<?php echo $term->term_id === $current_term->term_id ? ' active' : '' ?>"><?php echo $term->name ?></a> 
     </li> 
     <?php endforeach; ?> 
     </ul> 
     <a href="javascript: void 0" class="a-btn user-question-btn user-question-btn-toggle submit-english">Submit a Question</a><a href="javascript: void 0" class="a-btn user-question-btn user-question-btn-toggle submit-hebrew">???? ?????</a> 
     </div> 
     <div class="tabcontent-box" id="single_faq"> 
     <ul class="ul-content"> 
     <?php 
     while ( have_posts() ) : the_post(); ?> 
     <li> 
     <div class="tabcontent-text-box tabcontent-text-box-vi active"> 
     <div class="tabcontent-text"> 
     <?php 
     the_title('<h3 class="titel">', '</h3>'); 
     the_content(); 
     ?> 
     <p class="question hidden-sm" id="question-english-fourth">Do you have any question regarding the above answer? &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="click toggle-form-faq">Click here</span></p> 
     <p class="question hidden-sm" id="question-hebrew-fourth">??? ?? ?? ???? ?????? ?????? ?????  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="click toggle-form-faq">???? ???</span></p> 
     <div class="tabcontent-text__form hidden-sm hidden this_is_english"> 
     <?php 
     if ($my_current_lang=='en'){ 
     echo do_shortcode('[contact-form-7 id="270" title="faq" html_id="faq-contact-form"]');} 
     ?> 
     </div> 
     <div class="tabcontent-text__form tabcontent-text__form-hebrew hidden-sm hidden this_is_hebrew"> 
     <?php 
     if ($my_current_lang=='he'){ 
     echo do_shortcode('[contact-form-7 id="6818" title="faq_hebrew" html_id="faq-contact-form-hebrew" lang="he-IL" dir="rtl"]');} 
     ?> 
     </div></div> 
     <?php 
     
     ?> 
     <a href="<?php echo $link ?>" class="a-btn-tr hidden-sm user-question-btn-toggle-english">Back</a> 
     <a href="<?php echo $link ?>" class="a-btn-tr hidden-sm user-question-btn-toggle-hebrew 
    ">?????</a> 
     </div> 
     </li> 
     <?php endwhile; wp_reset_query(); ?> 
     </ul> 
     <div class="user-question hidden"> 
     <div class="user-question-form"> 
     <?php  
     if ($my_current_lang=='en'){ 
     echo do_shortcode('[contact-form-7 id="270" title="faq" html_id="faq-contact-form"]');} 
     ?> 
     </div> 
     <div class="user-question-form user-question-form-hebrew" style="direction: rtl!important; text-align: right!important;"> 
     <?php  
     if ($my_current_lang=='he'){ 
     echo do_shortcode('[contact-form-7 id="6818" title="faq_hebrew" html_id="faq-contact-form-hebrew" lang="he-IL" dir="rtl"]');} 
     ?> 
     </div> 
     <div class="user-question-back"> 
     <a href="javascript: void 0" class="a-btn-tr user-question-btn-toggle user-question-btn-toggle-english">Back</a> 
     <a href="javascript: void 0" class="a-btn-tr user-question-btn-toggle user-question-btn-toggle-hebrew">?????</a> 
     </div> 
     </div> 
     </div> 
     </div> 
     <p class="question question-sm" id="question-english-second" style="background-color: #f3f3f3">Do you have any question regarding the above answer?<br> <span class="click toggle-form-faq" style="display: inline-block; margin-top: 10px">Click here</span></p> 
     <p class="question question-sm" id="question-hebrew-second" style="background-color: #f3f3f3">??? ?? ?? ???? ?????? ?????? ????? <br> <span class="click toggle-form-faq" style="display: inline-block; margin-top: 10px">???? ???</span></p> 
     <div class="tabcontent-text tabcontent-text-sm question-sm"> 
     <div class="tabcontent-text__form tabcontent-text__form-sm hidden this_is_english"> 
     <?php 
     if ($my_current_lang=='en'){ 
     echo do_shortcode('[contact-form-7 id="270" title="faq" html_id="faq-contact-form"]');} 
     ?> 
     </div> 
     
     
     <div class="tabcontent-text__form tabcontent-text__form-hebrew tabcontent-text__form-sm tabcontent-text__form-sm-hebrew hidden this_is_hebrew"> 
     <?php 
     if ($my_current_lang=='he'){ 
     echo do_shortcode('[contact-form-7 id="6818" title="faq_hebrew" html_id="faq-contact-form-hebrew" lang="he-IL" dir="rtl"]');} 
     ?> 
     </div></div> 
     <div class="mobile-f"></div> 
     [/vc_column_text] 
     [/vc_column] 
     [/vc_row] 
     [/vc_section] 
     
     
     
    <?php 
    $content = ob_get_clean(); 
    echo do_shortcode($content); 
    ?> 
    </div> 
     
     
     <div class="thanks-message"> 
     <div class="thanks-message-x"> 
     <img src="<?php echo site_url() ?>/wp-content/uploads/2018/04/Icon-30-X-sign-white-2.svg" alt="X Icon"> 
     </div> 
     <div class="thanks-message-text text-center thank_you_message_english"> 
     <p class="thanks-message-text-titel thank_you_message_english">Thank you for your message</p> 
     <p  class="thank_you_message_english">We will respond as soon as possible.</p> 
     </div> 
     <div class="thanks-message-text text-center thank_you_message_hebrew"> 
     <p class="thanks-message-text-titel thank_you_message_hebre">???? ??? ?? ???????</p> 
     <p class="thank_you_message_hebre">??? ????? ????? ?? ?????.</p> 
     </div> 
     </div> 
     
    <?php get_footer(); 
    

    So… I guess this plugin would go back to well functioning, given the above fix suggested and adjusted to your site, only if you had it well configured BEFORE it stopped working, however possibly not otherwise.

    Thread Starter ziegel

    (@ziegel)

    Hi @tikguy ,

    Thanks

    May I ask to confirm, you have tested it, and the error situation has its “if routing” as it had previously, or it would now fall between the chairs?

    Thread Starter ziegel

    (@ziegel)

    And what would the code do, for the situation where there is an error?

    Thread Starter ziegel

    (@ziegel)

    Hi @tikguy ,

    If I got the explanation correctly:

    The root cause of this seems to be that In PHP 8.2, the default return value of DateTime::getLastErrors() changed. Before 8.2, it always returns an array even when there are no warnings or errors. In 8.2, it will return boolean false in this case. That’s what breaking Carbon’s constructor under PHP 8.2.

    I suspect, that the same applies to the function setLastErrors which you have used, i.e., possibly it provides two different data structure, depending if it has an error to report or it hasn’t. Testing it, to the best of my understanding, would require having a PHP error related to it.

    the support of ‘page-attributes’ is required to be first added to the post type generated manually, in order, to later call the ‘menu_order‘ directive. This directives allows the order to be done according to defined setting and not according to default post creation time.

    You may read more about it, here

    So the adding of the element to be controlled on functions.php would now look like this:

    function list_faq() {
        register_post_type('faq_questions',
            array(
                'labels' => array(
                    'name' => __('FAQ'),
                    'singular_name' => __('FAQ')
                ),
                'public' => true,
                'has_archive' => true,
                'supports' => array('title', 'editor', 'thumbnail', 'excerpt' , 'page-attributes')
            )
        );
    }
    
    add_action('init', 'list_faq');

    And the placing on the website of the fetched content would now look like this:

    <div class="tabcontent-box" id="id">
    	<ul class="ul-content">
    	<?php
    	$query = new WP_Query(array(
    		'post_type' => 'faq_questions',
    		'orderby' => 'menu_order',
    		'order' => 'ASC',
    		'tax_query' => array(
    			array(
    				'taxonomy' => $current_term->taxonomy,
    				'field' => 'slug',
    				'terms' =>	$current_term->slug
    
    			)
    		)
    	));
    	while ( $query->have_posts() ) : $query->the_post(); ?>
    		<li>
    			<a href="<?php the_permalink() ?>" class="tabcontent-link"><?php the_title() ?></a>
    		</li>
    	<?php endwhile; ?>
    	</ul>
    </div>

    And now… the magic returns, and moving by drag-and-drop of the elements with this plugin is back to working.

    You may also manually change the numbering of menu_order on the WordPress POST data base, according the post_type of the highlighted chosen by you name. This is required when you have more p

    the support of ‘page-attributes’ is required to be first added to the post type generated manually, in order, to later call the ‘menu_order‘ directive. This directives allows the order to be done according to defined setting and not according to default post creation time.

    You may read more about it, here

    So the adding of the element to be controlled on functions.php would now look like this:

    function list_faq() {
        register_post_type('faq_questions',
            array(
                'labels' => array(
                    'name' => __('FAQ'),
                    'singular_name' => __('FAQ')
                ),
                'public' => true,
                'has_archive' => true,
                'supports' => array('title', 'editor', 'thumbnail', 'excerpt' , 'page-attributes')
            )
        );
    }
    
    add_action('init', 'list_faq');

    And the placing on the website of the fetched content would now look like this:

    <div class="tabcontent-box" id="id">
    	<ul class="ul-content">
    	<?php
    	$query = new WP_Query(array(
    		'post_type' => 'faq_questions',
    		'orderby' => 'menu_order',
    		'order' => 'ASC',
    		'tax_query' => array(
    			array(
    				'taxonomy' => $current_term->taxonomy,
    				'field' => 'slug',
    				'terms' =>	$current_term->slug
    
    			)
    		)
    	));
    	while ( $query->have_posts() ) : $query->the_post(); ?>
    		<li>
    			<a href="<?php the_permalink() ?>" class="tabcontent-link"><?php the_title() ?></a>
    		</li>
    	<?php endwhile; ?>
    	</ul>
    </div>

    And now… the magic returns, and moving by drag-and-drop of the elements with this plugin is back to working.

    You may also manually change the numbering of menu_order on the WordPress POST data base, according the post_type of the highlighted chosen by you name. This is required when you have more p

    the support of ‘page-attributes’ is required to be first added to the post type generated manually, in order, to later call the ‘menu_order‘ directive. This directives allows the order to be done according to defined setting and not according to default post creation time.

    You may read more about it, here

    So the adding of the element to be controlled on functions.php would now look like this:

    function list_faq() {
        register_post_type('faq_questions',
            array(
                'labels' => array(
                    'name' => __('FAQ'),
                    'singular_name' => __('FAQ')
                ),
                'public' => true,
                'has_archive' => true,
                'supports' => array('title', 'editor', 'thumbnail', 'excerpt' , 'page-attributes')
            )
        );
    }
    
    add_action('init', 'list_faq');

    And the placing on the website of the fetched content would now look like this:

    <div class="tabcontent-box" id="id">
    	<ul class="ul-content">
    	<?php
    	$query = new WP_Query(array(
    		'post_type' => 'faq_questions',
    		'orderby' => 'menu_order',
    		'order' => 'ASC',
    		'tax_query' => array(
    			array(
    				'taxonomy' => $current_term->taxonomy,
    				'field' => 'slug',
    				'terms' =>	$current_term->slug
    
    			)
    		)
    	));
    	while ( $query->have_posts() ) : $query->the_post(); ?>
    		<li>
    			<a href="<?php the_permalink() ?>" class="tabcontent-link"><?php the_title() ?></a>
    		</li>
    	<?php endwhile; ?>
    	</ul>
    </div>

    And now… the magic returns, and moving by drag-and-drop of the elements with this plugin is back to working.

    You may also manually change the numbering of menu_order on the WordPress POST data base, according the post_type of the highlighted chosen by you name. This is required when you have more p

    the support of ‘page-attributes’ is required to be first added to the post type generated manually, in order, to later call the ‘menu_order‘ directive. This directives allows the order to be done according to defined setting and not according to default post creation time.

    You may read more about it, here

    So the adding of the element to be controlled on functions.php would now look like this:

    function list_faq() {
        register_post_type('faq_questions',
            array(
                'labels' => array(
                    'name' => __('FAQ'),
                    'singular_name' => __('FAQ')
                ),
                'public' => true,
                'has_archive' => true,
                'supports' => array('title', 'editor', 'thumbnail', 'excerpt' , 'page-attributes')
            )
        );
    }
    
    add_action('init', 'list_faq');

    And the placing on the website of the fetched content would now look like this:

    <div class="tabcontent-box" id="id">
    	<ul class="ul-content">
    	<?php
    	$query = new WP_Query(array(
    		'post_type' => 'faq_questions',
    		'orderby' => 'menu_order',
    		'order' => 'ASC',
    		'tax_query' => array(
    			array(
    				'taxonomy' => $current_term->taxonomy,
    				'field' => 'slug',
    				'terms' =>	$current_term->slug
    
    			)
    		)
    	));
    	while ( $query->have_posts() ) : $query->the_post(); ?>
    		<li>
    			<a href="<?php the_permalink() ?>" class="tabcontent-link"><?php the_title() ?></a>
    		</li>
    	<?php endwhile; ?>
    	</ul>
    </div>

    And now… the magic returns, and moving by drag-and-drop of the elements with this plugin is back to working.

    You may also manually change the numbering of menu_order on the WordPress POST data base, according the post_type of the highlighted chosen by you name. This is required when you have more p

Viewing 15 replies - 1 through 15 (of 227 total)