madla
Forum Replies Created
-
I have the same issue. I just upgreaded Yoast SEO (3.0.7), WPGlobus (1.4) and WPGlobusPlus (1.1.5) and now I see the language tags show up, but as rvdodewaard noted only on the default language.
The default language doesn’t work: https://shena.me/about/ and second language works right: https://shena.me/fr/about/I got it to work again. It was the SQL mode. It was too strict to allow the script to run.
As my install is only local for testing, I just set the mode to:sql_mode=NO_ENGINE_SUBSTITUTION in the my.cnf file
That did the trick.
More details:
The script created tables in the database. I tried running the process with the mySql root account with the same errors…so I don’t think it’s a permissions issue.The mySQL version that HostGator uses is 5.5.42-37.1 which is older than the installed version on my mac. However, I’ve been running a version of 5.7x on another mac and that has been working.
Running into the same issue when trying to pull my site onto my local computer (Mac OS X El Capitan).
I installed the latest version of MySQL and ran into the same errors.
I’m wondering if it has anything to do with the SQL Modes: docs
mysql> SELECT @@GLOBAL.sql_mode;
Mine look like this:
ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION********************************************************************************
DATABASE-ROUTINES
********************************************************************************
————————————–
SERVER ENVIROMENT
————————————–
MYSQL VERSION: 5.7.10
TIMEOUT: 5000
MAXPACK: 4194304
————————————–
DATABASE RESULTS
————————————–
**ERROR** database error write ‘Invalid default value for ‘comment_date” – [sql=
CREATE TABLEwp_comments
(
comment_ID
bigint(20) unsigned NOT NULL A…]
**ERROR** database error write ‘Invalid default value for ‘created” – [sql=
CREATE TABLEwp_duplicator_packages
(
id
bigint(20) unsigned NOT NUL…]
**ERROR** database error write ‘Invalid default value for ‘link_updated” – [sql=
CREATE TABLEwp_links
(
link_id
bigint(20) unsigned NOT NULL AUTO_IN…]
**ERROR** database error write ‘Invalid default value for ‘post_date” – [sql=
CREATE TABLEwp_posts
(
ID
bigint(20) unsigned NOT NULL AUTO_INCREME…]
**ERROR** database error write ‘Invalid default value for ‘user_registered” – [sql=
CREATE TABLEwp_users
(
ID
bigint(20) unsigned NOT NULL AUTO_INCREME…]
**ERROR** database error write ‘Table ‘shenatest.wp_duplicator_packages’ doesn’t exist’ – [sql=/* INSERT TABLE DATA: wp_duplicator_packages */
INSERT INTO
`
wp_duplicato…]
**ERROR** database error write ‘Table ‘shenatest.wp_duplicator_packages’ doesn’t exist’ – [sql=INSERT INTOwp_duplicator_packages
VALUES(“20”, “20151221_shenatschofen_c…]
**ERROR** database error write ‘Table ‘shenatest.wp_duplicator_packages’ doesn’t exist’ – [sql=INSERT INTOwp_duplicator_packages
VALUES(“21”, “20151221_shenatschofen_c…]
**ERROR** database error write ‘Incorrect string value: ‘\xF0\x9F\x91\x8D” …’ for column ‘option_value’ at row 1′ – [sql=INSERT INTOwp_options
VALUES(“8080”, “_transient_feed_ac0b00fe65abe10e0c…]
**ERROR** database error write ‘Table ‘shenatest.wp_posts’ doesn’t exist’ – [sql=
/* INSERT TABLE DATA: wp_posts */
INSERT INTOwp_posts
VALUES(“49”, “2”,…]
**ERROR** database error write ‘Table ‘shenatest.wp_posts’ doesn’t exist’ – [sql=INSERT INTOwp_posts
VALUES(“55”, “2”, “2013-02-05 16:24:35”, “2013-02-05…]Forum: Plugins
In reply to: [Event Organiser Posterboard] Sort order of EventsAfter quite a bit of head scratching I finally found the appropriate attribute:
[event_board order="desc" orderby="eventstart"]
Without the orderby attribute it doesn’t seem to work.
Forum: Plugins
In reply to: [Event Organiser Posterboard] Sort order of EventsI dumped the query object that gets passed into the query via the JS ajax call:
`print_r($query);
$event_query = new WP_Query( $query );`and this is what it shows:
Array ( [event_start_after] => -3 month [posts_per_page] => 20 [order] => desc [post_type] => event [paged] => 1 [post_status] => Array ( [0] => publish [1] => private ) [perm] => readable [supress_filters] => )
but the result is definitely not descending
event_start_day: “16”
event_start_month: “Dec”event_start_day: “22”
event_start_month: “Dec”event_start_day: “23”
event_start_month: “Dec”event_start_day: “24”
event_start_month: “Dec”Forum: Plugins
In reply to: [Event Organiser Posterboard] Sort order of EventsI’m running into the same issue. I want to show the oldest events at the bottom and the newest at the top. I tried a bunch of different variations, but none of them changes the order.
[event_board order="desc" event_start_after="-3 month"]
In a one column view, it shows the oldest at the top and the newest at the bottom. I tried order=DESC or order=”DESC” or order=desc…same results
When I do the same with the eo_events shortcode that works as expected.
[eo_events order=DESC]
Running on WP 4.4.
What I’ve come up with so far (rather clumsy) Is to look for the first image that is returned and prepend the words “<b>Photos in this post:</b>’ and setting the <b> to be NOT stripped via the settings.
I’d really like to wrap the tags into a <p> tag, but if I add that to the exclusions, all the p tags appear in the excerpt.
Only other way I could think of, is strip the images from the content and stick them into a global variable and output them separately on the search page.
Is there a better way to deal with what happens during ‘excerpting’?
Thanks…
Here’s what I did in order to make FooGallery work with SwipeBox in dFactory’s Responsive Lightbox.
Assuming you have both plugins installed go to the Responsive Lightbox settings and turn ‘Conditional loading’ off
then add the following action to your child theme or theme:
function add_foogallery_link_rel($attr, $args, $attachment) { $attr['data-rel'] = 'lightbox'; return $attr; } add_filter('foogallery_attachment_html_link_attributes', 'add_foogallery_link_rel', 10, 3);
I can’t get the sticky posts to disappear at all in WordPress 4.3.
Forum: Plugins
In reply to: [FoxyShop] Accessing Categories and ProductsA follow up on this…
Do you have any suggestions how I could easily identify a sub sub category or ‘group’ of products.
Is there a way to add some additional information e.g. ‘category type’ like group to a category that I can access when displaying categories vs groups of products?
Thanks again…foxyshop is quite amazing.
Forum: Plugins
In reply to: [FoxyShop] Adding product categories to main navigationAny idea why I’m only getting on of the top categories returned with wp_list_categories?
echo '<ul class="menu FoxyShop_Show_Categories_widget">'; echo wp_list_categories("taxonomy=foxyshop_categories&title_li=&depth=2"); echo '</ul>';
Forum: Plugins
In reply to: [FoxyShop] Adding product search to sidebarVery easy. Just created a widget for it in the child theme’s function.php.
Pulled from foxyshop/widgetcode.php
Forum: Plugins
In reply to: [FoxyShop] Accessing Categories and ProductsHow about this as an approach? Would this work better?
Hardware <- category Metal Hardware <-sub category Eye End <-sub-sub category (instead of a product) SKU description 83921 - for 3/4 tube <- product one description for 1/4 bolt <- part of product one description 83920 - for 7/8 tube <- product two description for 1/4 bolt
Would that allow me to search for each product based on SKU/name?
That should make it easy to later add each product/sku separately to the cart?I’d have to just change the category page display so that sub-sub categories are not part of the categories display and pull the details in on the sub-sub category.
I’d also have to figure out how to add an image to a category through the admin section. My gut tells me that would require a change to the plugin, right?
Thanks in advance…
Forum: Plugins
In reply to: [FoxyShop] Adding product categories to main navigationThat works great for single hierarchy. How would I go about getting subcategories?
Do I have to loop through them via:
get_terms(‘foxyshop_categories’, ‘hide_empty=0&hierarchical=0&parent=0&orderby=name&order=ASC’)I tried changing hierarchical to 1 and tried by going just after a parent id.
foxyshop_simple_category_children(parentid) works if I loop through the top hierarchy but then it returns already in a list.