Forum Replies Created

Viewing 15 replies - 31 through 45 (of 614 total)
  • Thread Starter Ambyomoron

    (@josiah-s-carberry)

    Thank you for this response. Under Time slot auto lock, one must select a single service or category. As far as I can see, this option will not block a time slot for all services—unless all the services are in the same category, which is not the case for me.

    Is there another way to achieve my goal without having to redo the same command multiple times?

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    Too late! I’ve already cleaned up the mess.
    It would be nice if you could say, one way or another, if your plugin does anything at all with creating or using the taxonomy term post_format_gallery in the taxonomy post-format.

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    Thanks again. I’m getting the hang of how to do this stuff.

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    Thanks very much. That seems to have done the trick. I note that the taxonomy term itself is still there. How would I get rid of that (or could I simply delete the row from the table)?

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    Maybe this is not the right place to ask how the search engines use post format.

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    That was very useful, Michael, and I thank you. I am still trying to grasp how search engines might make use of such information if, in fact, they make any use at all of it. I doubt that my readers make any use at all of such information.

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    Thank you very much for this information. Unfortunately, my question was not how to disable that sitemap. Might it be possible to review my questions above?

    Many thanks in advance.

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    I have solved the problem. Here is the cause, in case other php neophytes like me face a similar issue.

    In order to submit to Mailchimp values other than the email address, it is necessary to add a filter, as documented here: https://yikesplugins.com/knowledge-base/contact-form-7-populate-merge-variable-data-with-additional-user-information/

    I had done this, but I did not realize that a Contact Form 7 form with a field of type SELECT, as in my COUNTRY list (see above), stores the user’s response in an array. Thus, the following code set the value of ‘COUNTRY’ in the merge variables array to 0, or FALSE:

    $merge_variables['COUNTRY'] = filter_var( $cf7_variables['COUNTRY'], FILTER_SANITIZE_STRING );

    Since there is only a single country selected, I need to take the first value in the array COUNTRY, like this:

    ‘$merge_variables[‘COUNTRY’] = filter_var( $cf7_variables[‘COUNTRY’][0], FILTER_SANITIZE_STRING );’

    When doing so, the value of COUNTRY in the merge variables array is now a proper country name. Mailchimp then accepts the subscription request.

    If the plugin’s debug log contained more useful information than simply ‘Invalid resource’, this issue would have been much easier to resolve.

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    Here is an update on the problem.
    I have defined a field in the Mailchimp signup form called “Country”. It is a drop-down list of various country names. I have defined a Contact 7 Form with exactly the same drop-down list of countries, which is mandatory. Here is the Contact 7 form code:

    *Country: [select* COUNTRY "Afghanistan" "Albania" "Algeria" "American Samoa" "Andorra" "Angola" "Antigua and Barbuda" "Argentina" "Armenia" "Aruba" "Australia" "Austria" "Azerbaijan" "Bahamas" "Bahrain" "Bangladesh" "Barbados" "Belarus" "Belgium" "Belize" "Benin" "Bermuda" "Bhutan" "Bolivia" "Bosnia and Herzegovina" "Botswana" "Brazil" "Brunei Darussalam" "Bulgaria" "Burkina Faso" "Burundi" "Cambodia" "Cameroon" "Canada" "Cape Verde" "Cayman Islands" "Central African Republic" "Chad" "Chile" "China" "Colombia" "Comoros" "Congo" "Congo, the Democratic Republic of the" "Costa Rica" "C?te d'Ivoire" "Croatia" "Cuba" "Cyprus" "Czech Republic" "Denmark" "Djibouti" "Dominica" "Dominican Republic" "Ecuador" "Egypt" "El Salvador" "Equatorial Guinea" "Eritrea" "Estonia" "Ethiopia" "Fiji" "Finland" "France""Germany" "Gabon" "Gambia" "Georgia" "Ghana" "Greece" "Grenada" "Guam" "Guatemala" "Guinea" "Guinea-Bissau" "Guyana" "Haiti" "Honduras" "Hong Kong" "Hungary" "Iceland" "India" "Indonesia" "Iran, Islamic Republic of" "Iraq" "Ireland" "Israel" "Italy" "Jamaica" "Japan" "Jordan" "Kazakhstan" "Kenya" "Kiribati" "Korea, Democratic People's Republic of" "Korea, Republic of" "Kuwait" "Kyrgyzstan" "Lao People's Democratic Republic" "Latvia" "Lebanon" "Lesotho" "Liberia" "Libya" "Liechtenstein" "Lithuania" "Luxembourg" "Macedonia" "Madagascar" "Malawi" "Malaysia" "Maldives" "Mali" "Malta" "Marshall Islands" "Mauritania" "Mauritius" "Mexico" "Micronesia, Federated States of" "Moldova" "Monaco" "Mongolia" "Montenegro" "Morocco" "Mozambique" "Myanmar" "Namibia" "Nauru" "Nepal" "Netherlands" "New Zealand" "Nicaragua" "Niger" "Nigeria" "Norway" "Oman" "Pakistan" "Palau" "Palestine" "Panama" "Papua New Guinea" "Paraguay" "Peru" "Philippines" "Poland" "Portugal" "Puerto Rico" "Qatar" "Romania" "Russian Federation" "Rwanda" "Saint Kitts and Nevis" "Saint Lucia" "Saint Vincent and the Grenadines" "Samoa" "San Marino" "Sao Tome and Principe" "Saudi Arabia" "Senegal" "Serbia" "Seychelles" "Sierra Leone" "Singapore" "Slovakia" "Slovenia" "Solomon Islands" "Somalia" "South Africa" "South Somalia" "South Sudan" "Spain" "Sri Lanka" "Sudan" "Suriname" "Swaziland" "Sweden" "Switzerland" "Syrian Arab Republic" "Taiwan" "Tajikistan" "Tanzania" "Thailand" "Timor-Leste" "Togo" "Tonga" "Trinidad and Tobago" "Tunisia" "Turkey" "Turkmenistan" "Tuvalu" "Uganda" "Ukraine" "United Arab Emirates" "United Kingdom" "United States" "Uruguay" "Uzbekistan" "Vanuatu" "Venezuela" "Viet Nam" "Virgin Islands, U.S." "Yemen" "Zambia" "Zimbabwe"]

    When a subscriber completes that form, the data being sent to the mailchimp API is not, however, the name of the selected country. Instead, the value ‘false’ is being sent. Mailchimp rejects the attempted signup, as ‘false’ is not a valid country name for the field merge_fields.COUNTRY.

    Finally, the reason the other uses of the plugin work OK is simply because I do not attempt to capture the country in those other cases.

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    This issue appears to have been resolved with the update of WordPress to 5.8.2, which does indeed update the offending file, wp-includes/certificates/ca-bundle.crt

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    Thanks for confirming that point.

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    I received an answer from my hosting platform, which pointed to this issue at WordPress:

    https://core.trac.www.ads-software.com/changeset/51883/trunk/src/wp-includes/certificates/ca-bundle.crt

    So, everyone with a Let’s Encrypt certificate is likely to have this problem, dating to 30 September 2021, until WordPress gets it sorted out and releases new code (or until the site owner patches her or his own system).

    The issue apparently has nothing to do with the site’s own certificates which, in my case, are confirmed as up to date and valid.

    Hardcoding a certificate in an executable sounds like a bad decision for precisely the reason that a normal operational task becomes, instead, a new software release. But that is a different story… Maybe the plugin developers can exercise pressure on WordPress to release a correction rapidly.

    Ambyomoron

    (@josiah-s-carberry)

    I note that the following code enables the uploading of svg files:

    function add_file_types_to_uploads($file_types){
    $new_filetypes = array();
    $new_filetypes['svg'] = 'image/svg+xml';
    $file_types = array_merge($file_types, $new_filetypes );
    return $file_types;
    }
    add_filter('upload_mimes', 'add_file_types_to_uploads');

    I wonder if something similar would enable the video files you want to upload, or if something more would be required:

    function add_file_types_to_uploads($file_types){
    $new_filetypes = array();
    $new_filetypes['m3u8'] = 'application/x-mpegURL';
    $file_types = array_merge($file_types, $new_filetypes );
    return $file_types;
    }
    add_filter('upload_mimes', 'add_file_types_to_uploads');

    Or maybe adding to wp-config.php

    define( 'ALLOW_UNFILTERED_UPLOADS', true );

    will help. But see https://www.ads-software.com/support/article/roles-and-capabilities/

    Finally, maybe plugins designed to extend allowable uploads might help.

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    I am not interested in any plugins. I am looking for information, as per my two questions.

Viewing 15 replies - 31 through 45 (of 614 total)