lcwakeman
Forum Replies Created
-
Forum: Plugins
In reply to: [WP eCommerce] WordPress 3.8.1 crash on activation of WPECOK, I am having the same problems. I am upgrading a site to WP 3.8.1 and WP e-Commerce to Version 3.8.13. I did this in the folling manner after some trial and error.
Update plugins
Update Themes
De-activate all plugins except WPEC
Update WP
In a little bit, other updates appear
Applied those updates
Activate WPEC and crash.Warning: Invalid argument supplied for foreach() in /hermes/waloraweb097/b2549/as.grogreen/wp/staging/wp-content/plugins/wp-e-commerce/wpsc-includes/shipping.helper.php on line 510
Fatal error: Call to a member function get_shipping_method() on a non-object in /hermes/waloraweb097/b2549/as.grogreen/wp/staging/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-constants.php on line 2783
If I try to upgrade WP without deactivating WPEC, The admin area is unusable. Any save operation will put a masking div (like a lightbox) over the page and nothing happens, the data does not get saved so I can’t disable WPEC to get back. Fortunately I am working with a staging instance.
BTW, the first error seems to be caused by the $cart being serialized.
Forum: Fixing WordPress
In reply to: WordPress 3.8.1 Update FAILUREI aam running version 3.5.1
Forum: Fixing WordPress
In reply to: WordPress 3.8.1 Update FAILUREI am also haveing this problem, The following is displayed:
Downloading update from https://www.ads-software.com/wordpress-3.8.1-new-bundled.zip… Unpacking the update…
but no more.
1. Are custom post types missing? NO
2. Are custom post types appearing somewhere they should not? No
3. You cannot create regular WP posts after upgrade? Yes, must disable the plugin to get posts to save and be added to the blog. The Edit/New Post page includes the taxonomy for the custom type.
4. Have post type and taxonomy settings changed? No.I have seen this on two sites I worked on. On both the Types plugin was installed on WordPress 2.something. In both cases, I created a custom type with custom taxonomy. After upgrading to WordPress 3, they both exhibited this problem. The custom fields show up in the new and edit post forms and on the one I am reporting about, posts that I saved would no appear in my blog though tehy showed up in the all posts page. Disabling the Types plugin allowed me to create posts successfully.
I just did some testing and confirmed that the plugin prevented my adding a new post. I disabled the plugin and I could add the post. Of course I had to reactivate the plugin to get my custom types to display.
Forum: Plugins
In reply to: SB Welcome Email EditorHello????
I did some checking. I have a non-WordPress site that successfully sends html email. The email headers are:
From: Sender email
Reply-To: Sender email
Return-Path: do_not_reply@Sender domain
Errors-To: Sender email
X-Mailer: https://www.phpclasses.org/mimemessage $Revision: 1.70 $ (mail)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=”79982bf14bb73e95498f834e8852cb42″
Message-ID: <20130727124920.9556.do-not-reply@Sender domain>I installed the plugin on a new WordPress installation in a sub-domain of that site and its email headers look like:
Reply-To: Sender email
From: Sender email
Content-type: text/html; charset=UTF-8Forum: Fixing WordPress
In reply to: I got hacked, saatan.phpI will look into those. I have decided against changing the protection as it would cause serious issues.
Thanks for the quick reply.
Forum: Fixing WordPress
In reply to: Dropdown Menus not rightFound the problem. actually, quite a few.
When I looked at the css for the menu again, it looked familiar. I had used that css some time ago for a tristate menu. Well, it didn’t support sub-menus then and still doesn’t. I wrapped the menu in a div and rewrote the call to wp_nav_menu and copied the css from twenty ten for the menu. I then tweaked it to match the existing menu.
Thanks, anyway
Forum: Fixing WordPress
In reply to: Dropdown Menus not rightIfyou want to look at the site with a single evel menu, go to https://www.mysonorasubaru.com/.
I can’t break the site or I will hear all kinds of grief.
So I went ahead and did it.
// truncate the events table $wpdb->query('TRUNCATE TABLE '.$wpdb->prefix.'aec_event'); // Get the published events $posts_array = get_posts(array('post_type' => 'tribe_events', 'numberposts' => 1000, 'order' => 'ASC')); foreach ($posts_array as $posts) { $record = array(); // prevent possible nasty issues // sace the post data $record['title'] = $posts->post_title; $record['description'] = $posts->post_content; $record['user_id'] = $posts->post_author; // get the post custom data $custom = get_post_custom($posts->ID); // save the custom data $record['start'] = $custom['_EventStartDate']['0']; $record['end'] = $custom['_EventEndDate']['0']; $record['allDay'] = $custom['_EventAllDay']['0']; $record['repeat_freq'] = 0; $record['repeat_int'] = 0; $record['category_id'] = 1; $record['repeat_end'] = substr($custom['_EventEndDate']['0'], 0, stripos($custom['_EventEndDate']['0'], ' ')); // get the venue custom data $venuecustom = get_post_custom($custom['_EventVenueID']['0']); // save the venue custom data $record['venue'] = $venuecustom['_VenueVenue']['0']; $record['address'] = $venuecustom['_VenueAddress']['0']; $record['city'] = $venuecustom['_VenueCity']['0']; $record['state'] = $venuecustom['_VenueStateProvince']['0']; $record['zip'] = $venuecustom['_VenueZip']['0']; $record['contact_info'] = $venuecustom['_VenuePhone']['0']; // insert the event $wpdb->insert($wpdb->prefix.'aec_event', $record); }
Not pretty but it works
Forum: Plugins
In reply to: Problem with Types pluginOh, never mind, I figured it out but thanks anyway.
By the way, the permalink setting is Post name, the post name to get to the page is the singular, ie https://blugUrl/Singular Post Type/.
Forum: Plugins
In reply to: Application state or contextI got it working. I added login expiration and session id fields to my user table. I update these fields to now() + 30 minutes and $_$_COOCKIE[‘PHPSESSID’], respectively.
Forum: Plugins
In reply to: Need to get a list of tehe templatesI made a slight change to the code in the previous replu as it wouldn’t deal well with spaces in template names:
[Code moderated as per the Forum Rules. Please use the pastebin]
I did the following to update the template for a page(The $page array contains a description of the page being modified. It is an array that can be used to insert the page in the posts table:
[Code moderated as per the Forum Rules. Please use the pastebin]
An entry for the $page array is as follows:
'home-screen' => array( 'post_title' => 'PM Home Screen', 'post_type' => 'page', 'post_name' => 'home-screen', 'comment_status'=> 'closed', 'ping_status' => 'closed', 'post_content' => '[tspm_homescreen]', 'post_status' => 'publish', 'post_author' => 1, 'menu_order' => 0 ),
Forum: Plugins
In reply to: Need to get a list of tehe templatesThe following will get a list of available templates:
// get a list of templates $templates = array('0' => 'default'); $dh = opendir(get_template_directory()); while ($file = readdir($dh)) { if (strpos(strtoupper($file), 'PHP')) { $contents = file_get_contents(get_template_directory().'/'.$file); if ($location = strpos(strtoupper($contents),'TEMPLATE NAME:')) { $temp = explode("\n", substr($contents, $location)); $temp = explode(':', $temp['0']); $temp = explode(' ', trim($temp['1'])); $templates[$file] = $temp['0']; } } } closedir($dh);