Tag Info

New answers tagged

2

This error: Fatal error: Call to a member function insert() on a non-object Means that $wpdb isn't instantiated so you are running your code too early or out of WordPress context-- for example, in an exterior PHP file accessed directly, which is what I suspect (Poorly conceived AJAX request perhaps?). As mentioned, the code has more formats that data ...


1

EDIT: If you use $post in a function, you have to define it of course: function xyz(){ global $post; //Your code } Initial answer, might help others: It appears to me, you do not use it inside an action or if so, you use it to early. It should work inside the 'init' action. So you could do something like <?php add_action( 'init', ...


-1

I found two similar files in theme folders remove it file and Check my theme in Theme checker and issue solved.


0

These error messages are quite obvious and explicit in their explanation. In plain English is says the following: Shortcodes and registering custom post types ( and for that matter custom taxonomies and all site specific functionalities ) should be done in a plugin and not in your theme. And the simple reason behind this all is, these functions gives ...


0

You can degrade the wordpress, Let's have a look at this tutorial visit https://www.youtube.com/watch?v=OwNR6NVhVFQ


1

I am not sure where you got that export code but I don't see the PRIMARY KEY defined as it should be. Take a look at the code from Core that creates the table: 87 CREATE TABLE $wpdb->commentmeta ( 88 meta_id bigint(20) unsigned NOT NULL auto_increment, 89 comment_id bigint(20) unsigned NOT NULL default '0', 90 meta_key varchar(255) default ...


0

Are you still facing the issue? I might be able to help you out. Here are some more reasons why it might be happening: A corrupted database – Bad plugins, addons, themes and data-transfer interruptions might leave your database short of tables or completely corrupted at worst. Corrupted WordPress files Found this on: ...


2

Xan is a georgian letter as I can find in Google, but it's not a valid Unicode Script for RegEx, you can find a list of the Unicode Scripts here: http://www.regular-expressions.info/unicode.html Maybe try using another one than Xan, maybe Georgian: preg_match( '/[\p{Georgian}]/u', $content, $results ); Let me know how that goes.


1

There is problem with the "wordpress-seo" permission so please following steps. There are two way 1) Upload from the wp-admin Step 1 -> Change the "wordpress-seo" permission or rename the "wordpress-seo" plugin to another Step 2 -> If you have change the permission then just upgrade the plugin and if you have rename the plugin dir then you need to ...


0

I checked in mysql and the type of the column it was looking for is text and in version 5.1 of MySQL that I am using the size is 65,535 so I replaced line 1461 which was giving error with the following hardcoded size: $content_length = array( 'type' => 'byte', 'length' => 65535, ...



Top 50 recent answers are included