Certificate verification disabled (sslverify=false)
https://api.pinterest.com/v1/urls/count.json
?callback=receiveCount
&url=https://www.thegooddeal.shop
Agradezco su ayuda para eliminar el error
Screenshot: https://pasteboard.co/qFyr9oXedVpm.png
]]>Environment:
============
WordPress 5.5.1
MySQL 5.7.31
PHP 7.2.24
ACTIONS
=======
Updated from Ninja Forms v3.4.26 to v3.4.30
EXPECTED OUTCOME
================
o Ninja Forms Updated
o Forms Work
o No error messages
ACTUAL OUTCOME
==============
o Ninja Forms Updated
o Forms Work
o Error messages – see below.
ERROR MESSAGE reported by Query Monitor
================================================
DESCRIBE IF;
NF_Database_Migrations_Forms->run()
wp-content/plugins/ninja-forms/includes/Database/Migrations/Forms.php:47
NF_Abstracts_Migration->_run()
wp-content/plugins/ninja-forms/includes/Abstracts/Migration.php:134
NF_Database_Migrations->migrate()
wp-content/plugins/ninja-forms/includes/Database/Migrations.php:40
Ninja_Forms::instance()
wp-content/plugins/ninja-forms/ninja-forms.php:451
Ninja_Forms()
wp-content/plugins/ninja-forms/ninja-forms.php:1207
Plugin: ninja-forms You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘IF’ at line 1
———
There were 10 further errors reported, all of the same format, with the only differences being in first three lines of detail (as shown below).
NF_Database_Migrations_FormMeta->run()
wp-content/plugins/ninja-forms/includes/Database/Migrations/FormMeta.php:39
NF_Abstracts_Migration->_run()
NF_Database_Migrations_Fields->run()
wp-content/plugins/ninja-forms/includes/Database/Migrations/Fields.php:46
NF_Abstracts_Migration->_run()
NF_Database_Migrations_FieldMeta->run()
wp-content/plugins/ninja-forms/includes/Database/Migrations/FieldMeta.php:38
NF_Abstracts_Migration->_run()
NF_Database_Migrations_Actions->run()
wp-content/plugins/ninja-forms/includes/Database/Migrations/Actions.php:42
NF_Abstracts_Migration->_run()
NF_Database_Migrations_ActionMeta->run()
wp-content/plugins/ninja-forms/includes/Database/Migrations/ActionMeta.php:39
NF_Abstracts_Migration->_run()
NF_Database_Migrations_Objects->run()
wp-content/plugins/ninja-forms/includes/Database/Migrations/Objects.php:37
NF_Abstracts_Migration->_run()
NF_Database_Migrations_ObjectMeta->run()
wp-content/plugins/ninja-forms/includes/Database/Migrations/ObjectMeta.php:37
NF_Abstracts_Migration->_run()
NF_Database_Migrations_Relationships->run()
wp-content/plugins/ninja-forms/includes/Database/Migrations/Relationships.php:36
NF_Abstracts_Migration->_run()
NF_Database_Migrations_Upgrades->run()
wp-content/plugins/ninja-forms/includes/Database/Migrations/Upgrades.php:37
NF_Abstracts_Migration->_run()
NF_Database_Migrations_Chunks->run()
wp-content/plugins/ninja-forms/includes/Database/Migrations/Chunks.php:30
NF_Abstracts_Migration->_run()
if you want then you can contact with me .
Thanks
Rony Kader ( Tarkul Islam )
https://profiles.www.ads-software.com/ronykader
]]>I don’t have any visible errors, the items show in the admin panel with no issue and display on their own individual page, but only on the taxonomy-project.php used to display the items in the category do they not show up (sometimes).
For categories not displaying, adding a test item will make the category appear again. Adding that same item to more than one category makes both categories blank. If I save the test item to the original category, that categories items display again. Any existing item that I edit the categories it’s included in makes all the pages for those categories blank. This is the same behavior for all categories, including new categories created for testing. I do already have some items previously added that do successfully display in more than one category, but if they’re edited at this point, they stop displaying for all categories they’re added to. Once a category displays content, it will keep displaying it until I mess with the entries for that category in the admin panel.
Despite playing around with new test items, one category wouldn’t display anything at all until I removed the “/” from the category name (“trees / flowers”), and now behaves like the other categories do. Other categories had a “/” in the name with no issue, however.
When a category does not display, this query (code below from the taxonomy-projects.php file) seems to not execute at all, or come up blank as everything before and after in the taxonomy-project.php file displays; none of the divs in the query display at all. When the items do display for the category, they display correctly, both in layout and with the right items showing on the page.
Query that seems to not execute when editing items in the custom post type:
<?php
$query = new WP_Query(array('post_type' => 'portfolio', 'posts_per_page' => -1, 'project' => get_the_term_list( $post->ID, 'project' )));
while ($query->have_posts()) : $query->the_post();
?>
<div class="grid parent">
<div class="centered" align="center">
<div class="child"><a href="<? the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail('thumbnail'); ?></a>
</div>
</div>
<!--<p><a href="<? the_permalink()?>"><?php the_title(); ?></a></p>-->
</div>
<?php
endwhile; wp_reset_query(); ?>
I’ve tried repairing the database and repairing and optimizing via wp-config.php and this seems to have no effect. The repair did not list out the table for the custom post type.
The function defining the custom post type:
<?php
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 280, 210, true ); // Normal post thumbnails
add_image_size( 'screen-shot', 720, 540 ); // Full size screen
}
add_action('init', 'portfolio_register');
function portfolio_register() {
$args = array(
'label' => __('Portfolio'),
'singular_label' => __('Project'),
'public' => true,
'show_ui' => true,
'capability_type' => 'post',
'hierarchical' => false,
'rewrite' => true,
'supports' => array('title', 'editor', 'thumbnail')
);
register_post_type( 'portfolio' , $args );
}
register_taxonomy("project", array("portfolio"), array("hierarchical" => true, "label" => "Project Types", "singular_label" => "Project Type", "rewrite" => true));
add_action("admin_init", "portfolio_meta_box");
function portfolio_meta_box(){
add_meta_box("projInfo-meta", "Project Options", "portfolio_meta_options", "portfolio", "side", "low");
}
function portfolio_meta_options(){
global $post;
if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) return $post_id;
$custom = get_post_custom($post->ID);
$link = $custom["projLink"][0];
?>
<label>Link:</label><input name="projLink" value="<?php echo $link; ?>" />
<?php
}
add_action('save_post', 'save_project_link');
function save_project_link(){
global $post;
if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ){
return $post_id;
}else{
update_post_meta($post->ID, "projLink", $_POST["projLink"]);
}
}
add_filter("manage_edit-portfolio_columns", "project_edit_columns");
function project_edit_columns($columns){
$columns = array(
"cb" => "<input type=\"checkbox\" />",
"title" => "Project",
"description" => "Description",
"link" => "Link",
"type" => "Type of Project",
"thumbnail" => "Thumbnail",
);
return $columns;
}
add_action("manage_posts_custom_column", "project_custom_columns");
function project_custom_columns($column){
global $post;
switch ($column)
{
case "description":
the_excerpt();
break;
case "link":
$custom = get_post_custom();
echo $custom["projLink"][0];
break;
case "type":
echo get_the_term_list($post->ID, 'project', '', ', ','');
break;
case "thumbnail":
the_post_thumbnail();
break;
}
}
I tried downloading the xml backup and importing it onto a new site on a MU install I use for development to see if the issue replicates there. In checking “import attachments”, it imported some of the media files and none of the pages or custom posts (portfolio) imported, so I can’t even get a testing environment working.
I suspect it’s a database issue or perhaps something in the function defining the custom post category. Any help with this is greatly appreciated. I’m at a loss for fixing this issue.
]]>I try to use the plugin which seems very interesting and widely parametrable.
I get an empty widget (just title) and the debug option sends :
MySQL server version:
collapsCat options:
Array
(
[title] => Arbre des Catégories
[showPostCount] => 1
[inExclude] => include
[inExcludeCats] =>
[showPosts] => 1
[showPages] =>
[linkToCat] =>
[olderThan] =>
[excludeAll] => 0
[catSortOrder] => ASC
[catSort] => catName
[postSortOrder] => ASC
[postSort] => postTitle
[expand] => 0
[defaultExpand] =>
[debug] => 1
[postTitleLength] => 100
[catfeed] =>
[taxonomy] => both
[post_type] => post
[postDateAppend] => after
[postDateFormat] =>
[showPostDate] =>
[useCookies] =>
[postsBeforeCats] =>
[expandCatPost] =>
[showEmptyCat] => 1
[showTopLevel] =>
[customExpand] =>
[customCollapse] =>
[style] => kubrick
[accordion] => 0
[title_link] =>
[addMisc] =>
[addMiscTitle] =>
[number] => 2
[includeCatArray] => Array
(
)
[expandSym] => ?
[collapseSym] => ▼
)
postsToExclude:
Array
(
)
CATEGORY QUERY:
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN
wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN
('category','post_tag') AND t.slug!='blogroll'
ASC
CATEGORY QUERY RESULTS
WP_Error Object
(
[errors:WP_Error:private] => Array
(
[invalid_taxonomy] => Array
(
[0] => La taxinomie est invalide
)
)
[error_data:WP_Error:private] => Array
(
)
)
POST QUERY:
select ID, slug, date(post_date) as date, post_status,
post_type, post_date, post_author, post_title, post_name, name, object_id,
t.term_id from wp_term_relationships AS tr, wp_posts AS p,
wp_terms AS t, wp_term_taxonomy AS tt
WHERE tt.term_id = t.term_id
AND object_id=ID
AND post_status='publish'
AND tr.term_taxonomy_id = tt.term_taxonomy_id
AND tt.taxonomy IN ('category','post_tag') AND post_type='post' ORDER BY p.post_title ASC
POST QUERY RESULTS
Array
(
[0] => stdClass Object
(
[ID] => 335
[slug] => doc_notes_ebauche
[date] => 2015-01-15
[post_status] => publish
[post_type] => post
[post_date] => 2015-01-15 16:46:33
[post_author] => 1
[post_title] => (test) Affichage de structure de catégorie
[post_name] => test-affichage-de-structure-de-categorie
[name] => Brouillon - notes - ébauche
[object_id] => 335
[term_id] => 22
)
[1] => stdClass Object
(
[ID] => 335
[slug] => test_mise_en_page
[date] => 2015-01-15
[post_status] => publish
[post_type] => post
[post_date] => 2015-01-15 16:46:33
[post_author] => 1
[post_title] => (test) Affichage de structure de catégorie
[post_name] => test-affichage-de-structure-de-categorie
[name] => Test de mise en page (publication admin)
[object_id] => 335
[term_id] => 27
)
[2] => stdClass Object
(
[ID] => 335
[slug] => brouillon
[date] => 2015-01-15
[post_status] => publish
[post_type] => post
[post_date] => 2015-01-15 16:46:33
[post_author] => 1
[post_title] => (test) Affichage de structure de catégorie
[post_name] => test-affichage-de-structure-de-categorie
[name] => Brouillon
[object_id] => 335
[term_id] => 125
)
[3] => stdClass Object
(
[ID] => 335
[slug] => test-de-mise-en-page
[date] => 2015-01-15
[post_status] => publish
[post_type] => post
[post_date] => 2015-01-15 16:46:33
[post_author] => 1
[post_title] => (test) Affichage de structure de catégorie
[post_name] => test-affichage-de-structure-de-categorie
[name] => Test de mise en page
[object_id] => 335
[term_id] => 126
)
[4] => stdClass Object
(
[ID] => 335
[slug] => structure-categories
[date] => 2015-01-15
[post_status] => publish
[post_type] => post
[post_date] => 2015-01-15 16:46:33
[post_author] => 1
[post_title] => (test) Affichage de structure de catégorie
[post_name] => test-affichage-de-structure-de-categorie
[name] => structure catégories
[object_id] => 335
[term_id] => 127
)
)
Do these data trace contains useful information about errors somewhere ?
Or the elements for the solution ?
Best regards
Thanks for help
Trebly
https://www.ads-software.com/plugins/collapsing-categories/
]]>I tries to use the plugin which seems very interesting and widely parametrable.
I get an empty widget (just title) and the debug option sends :
MySQL server version:
collapsCat options:
Array
(
[title] => Arbre des Catégories
[showPostCount] => 1
[inExclude] => include
[inExcludeCats] =>
[showPosts] => 1
[showPages] =>
[linkToCat] =>
[olderThan] =>
[excludeAll] => 0
[catSortOrder] => ASC
[catSort] => catName
[postSortOrder] => ASC
[postSort] => postTitle
[expand] => 0
[defaultExpand] =>
[debug] => 1
[postTitleLength] => 100
[catfeed] =>
[taxonomy] => both
[post_type] => post
[postDateAppend] => after
[postDateFormat] =>
[showPostDate] =>
[useCookies] =>
[postsBeforeCats] =>
[expandCatPost] =>
[showEmptyCat] => 1
[showTopLevel] =>
[customExpand] =>
[customCollapse] =>
[style] => kubrick
[accordion] => 0
[title_link] =>
[addMisc] =>
[addMiscTitle] =>
[number] => 2
[includeCatArray] => Array
(
)
[expandSym] => ?
[collapseSym] => ▼
)
postsToExclude:
Array
(
)
CATEGORY QUERY:
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN
wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN
('category','post_tag') AND t.slug!='blogroll'
ASC
CATEGORY QUERY RESULTS
WP_Error Object
(
[errors:WP_Error:private] => Array
(
[invalid_taxonomy] => Array
(
[0] => La taxinomie est invalide
)
)
[error_data:WP_Error:private] => Array
(
)
)
POST QUERY:
select ID, slug, date(post_date) as date, post_status,
post_type, post_date, post_author, post_title, post_name, name, object_id,
t.term_id from wp_term_relationships AS tr, wp_posts AS p,
wp_terms AS t, wp_term_taxonomy AS tt
WHERE tt.term_id = t.term_id
AND object_id=ID
AND post_status='publish'
AND tr.term_taxonomy_id = tt.term_taxonomy_id
AND tt.taxonomy IN ('category','post_tag') AND post_type='post' ORDER BY p.post_title ASC
POST QUERY RESULTS
Array
(
[0] => stdClass Object
(
[ID] => 335
[slug] => doc_notes_ebauche
[date] => 2015-01-15
[post_status] => publish
[post_type] => post
[post_date] => 2015-01-15 16:46:33
[post_author] => 1
[post_title] => (test) Affichage de structure de catégorie
[post_name] => test-affichage-de-structure-de-categorie
[name] => Brouillon - notes - ébauche
[object_id] => 335
[term_id] => 22
)
[1] => stdClass Object
(
[ID] => 335
[slug] => test_mise_en_page
[date] => 2015-01-15
[post_status] => publish
[post_type] => post
[post_date] => 2015-01-15 16:46:33
[post_author] => 1
[post_title] => (test) Affichage de structure de catégorie
[post_name] => test-affichage-de-structure-de-categorie
[name] => Test de mise en page (publication admin)
[object_id] => 335
[term_id] => 27
)
[2] => stdClass Object
(
[ID] => 335
[slug] => brouillon
[date] => 2015-01-15
[post_status] => publish
[post_type] => post
[post_date] => 2015-01-15 16:46:33
[post_author] => 1
[post_title] => (test) Affichage de structure de catégorie
[post_name] => test-affichage-de-structure-de-categorie
[name] => Brouillon
[object_id] => 335
[term_id] => 125
)
[3] => stdClass Object
(
[ID] => 335
[slug] => test-de-mise-en-page
[date] => 2015-01-15
[post_status] => publish
[post_type] => post
[post_date] => 2015-01-15 16:46:33
[post_author] => 1
[post_title] => (test) Affichage de structure de catégorie
[post_name] => test-affichage-de-structure-de-categorie
[name] => Test de mise en page
[object_id] => 335
[term_id] => 126
)
[4] => stdClass Object
(
[ID] => 335
[slug] => structure-categories
[date] => 2015-01-15
[post_status] => publish
[post_type] => post
[post_date] => 2015-01-15 16:46:33
[post_author] => 1
[post_title] => (test) Affichage de structure de catégorie
[post_name] => test-affichage-de-structure-de-categorie
[name] => structure catégories
[object_id] => 335
[term_id] => 127
)
)
Do these data trace contains useful information about errors somewhere ?
Or the elements for the solution ?
Best regards
Thanks for help
Trebly
https://www.ads-software.com/plugins/collapsing-categories/
]]>I tries to use the plugin which seems interesting and widely parametrable.
I get an empty widget (just title) and the debug option sends :
MySQL server version:
collapsCat options:
Array
(
[title] => Arbre des Catégories
[showPostCount] => 1
[inExclude] => include
[inExcludeCats] =>
[showPosts] => 1
[showPages] =>
[linkToCat] =>
[olderThan] =>
[excludeAll] => 0
[catSortOrder] => ASC
[catSort] => catName
[postSortOrder] => ASC
[postSort] => postTitle
[expand] => 0
[defaultExpand] =>
[debug] => 1
[postTitleLength] => 100
[catfeed] =>
[taxonomy] => both
[post_type] => post
[postDateAppend] => after
[postDateFormat] =>
[showPostDate] =>
[useCookies] =>
[postsBeforeCats] =>
[expandCatPost] =>
[showEmptyCat] => 1
[showTopLevel] =>
[customExpand] =>
[customCollapse] =>
[style] => kubrick
[accordion] => 0
[title_link] =>
[addMisc] =>
[addMiscTitle] =>
[number] => 2
[includeCatArray] => Array
(
)
[expandSym] => ?
[collapseSym] => ▼
)
postsToExclude:
Array
(
)
CATEGORY QUERY:
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN
wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN
('category','post_tag') AND t.slug!='blogroll'
ASC
CATEGORY QUERY RESULTS
WP_Error Object
(
[errors:WP_Error:private] => Array
(
[invalid_taxonomy] => Array
(
[0] => La taxinomie est invalide
)
)
[error_data:WP_Error:private] => Array
(
)
)
POST QUERY:
select ID, slug, date(post_date) as date, post_status,
post_type, post_date, post_author, post_title, post_name, name, object_id,
t.term_id from wp_term_relationships AS tr, wp_posts AS p,
wp_terms AS t, wp_term_taxonomy AS tt
WHERE tt.term_id = t.term_id
AND object_id=ID
AND post_status='publish'
AND tr.term_taxonomy_id = tt.term_taxonomy_id
AND tt.taxonomy IN ('category','post_tag') AND post_type='post' ORDER BY p.post_title ASC
POST QUERY RESULTS
Array
(
[0] => stdClass Object
(
[ID] => 335
[slug] => doc_notes_ebauche
[date] => 2015-01-15
[post_status] => publish
[post_type] => post
[post_date] => 2015-01-15 16:46:33
[post_author] => 1
[post_title] => (test) Affichage de structure de catégorie
[post_name] => test-affichage-de-structure-de-categorie
[name] => Brouillon - notes - ébauche
[object_id] => 335
[term_id] => 22
)
[1] => stdClass Object
(
[ID] => 335
[slug] => test_mise_en_page
[date] => 2015-01-15
[post_status] => publish
[post_type] => post
[post_date] => 2015-01-15 16:46:33
[post_author] => 1
[post_title] => (test) Affichage de structure de catégorie
[post_name] => test-affichage-de-structure-de-categorie
[name] => Test de mise en page (publication admin)
[object_id] => 335
[term_id] => 27
)
[2] => stdClass Object
(
[ID] => 335
[slug] => brouillon
[date] => 2015-01-15
[post_status] => publish
[post_type] => post
[post_date] => 2015-01-15 16:46:33
[post_author] => 1
[post_title] => (test) Affichage de structure de catégorie
[post_name] => test-affichage-de-structure-de-categorie
[name] => Brouillon
[object_id] => 335
[term_id] => 125
)
[3] => stdClass Object
(
[ID] => 335
[slug] => test-de-mise-en-page
[date] => 2015-01-15
[post_status] => publish
[post_type] => post
[post_date] => 2015-01-15 16:46:33
[post_author] => 1
[post_title] => (test) Affichage de structure de catégorie
[post_name] => test-affichage-de-structure-de-categorie
[name] => Test de mise en page
[object_id] => 335
[term_id] => 126
)
[4] => stdClass Object
(
[ID] => 335
[slug] => structure-categories
[date] => 2015-01-15
[post_status] => publish
[post_type] => post
[post_date] => 2015-01-15 16:46:33
[post_author] => 1
[post_title] => (test) Affichage de structure de catégorie
[post_name] => test-affichage-de-structure-de-categorie
[name] => structure catégories
[object_id] => 335
[term_id] => 127
)
)
Do these data trace contains useful information about errors somewhere ?
Or the elements for the solution ?
Best regards
Trebly
Thanks
https://www.ads-software.com/plugins/collapsing-category-list/
]]>In debug mode my category query created an error on your line 440 — your reorder terms routine didn’t find an expected object[0]. Well, in the bar dump I saw that there is no item 0, just a list of various other iDs.
I fixed the problem. I changed !is_object($objects[0]) to !is_objects(reset($objects))
See below.
I hoe you can validate my fix and update when you have a chance.
Cheers!
function reorder_terms( $objects ) {
// we do not need empty objects
if ( empty( $objects ) )
return $objects;
// do not apply ordering to list that contains just names
if ( !is_object( reset($objects) ) )
return $objects;
https://www.ads-software.com/plugins/simple-custom-post-order/
]]>