CircleReader
Forum Replies Created
-
@kprovance Thanks for your response.
The AUTH_COOKIE error popped up after updating Redux to 4.3.0, and disappears when I disable the plugin; on reproducing it, the whole error is:
Warning: Use of undefined constant AUTH_COOKIE - assumed 'AUTH_COOKIE' (this will throw an Error in a future version of PHP) in /home/readingc/public_html/readingcirclebooks/wp-includes/pluggable.php on line 850 Sorry, you are not allowed to access this page.
(What I originally posted was reconstructed from my google search, sorry.)
I now see you have posted a 4.3.1 update that fixes the issue. Thanks so much for your fast response!
- This reply was modified 3 years, 2 months ago by CircleReader.
- This reply was modified 3 years, 2 months ago by CircleReader.
I’m getting the same error (“use of undefined constant auth_cookie – assumed ‘auth_cookie’ (this will throw an error in a future version of php) in /home/readingc/public_html/read”), and had to disable the plugin to get admin access back.
My site is also running multisite, and googling the error led me to this thread, which might offer some clues: https://www.ads-software.com/support/topic/bug-after-latest-update-2/
Forum: Plugins
In reply to: [Genesis Co-Authors Plus] Stripslashes ErrorLooks like the same problem occurs with Co-Authors Plus (https://www.ads-software.com/plugins/co-authors-plus/) whether or not you have the Genesis author-box support plugin enabled.
Forum: Plugins
In reply to: [File Gallery] Gallery edits not savingThanks very much!
Forum: Hacks
In reply to: preset admin menu links to create postings with specific category, tags, etc.?I’ve been trying to crack this one as well, and have been working from this starting point: https://forums.whirlpool.net.au/archive/1608032. The function defines a
$new_post
array with a category given in the url, useswp_insert_post($new_post)
to add it to the database & give it a `$post_ID’, and then redirects to the editor page for the new post.I’m adding the link not to the admin menus, but to the dashboard widget of the <a href=”https://www.ads-software.com/extend/plugins/wp-category-manager/”>Category Manager</a> plugin. At the moment my link looks like https://example.com/wp-content/plugins/my-plugin/wpcm-newPost.php?category=8, and the content of that file is a bit simplified from the original, with some
echo
statements to help me see what’s happening:function new_post_category() { echo '<div>Hello world! Go add a new one!'; $category = $_GET['category']; // get the category from the url echo ' This should be a new post in category ' . $category . '</div>'; // checking to see if we've got it $new_post = array( 'post_status' => 'draft', // set post status to draft - we don't want the new post to appear live yet. 'post_date' => date('Y-m-d H:i:s'), // set post date to current date. 'post_type' => 'post', // set post type to post. 'post_category' => array($category) // set category to the category/categories parsed in your previous array ); print_r($new_post); //checking to see that the $new_post array is there $post_ID = 'post_ID_string'; //putting something in this to echo $post_ID = wp_insert_post( $new_post ); // add the new post to the WordPress database. This should return the ID of the new post, replacing the original value of $post_ID (right?) echo '<div>This should be the new post ID: ' . $post_ID . '</div>';// $new_post_redirect = 'https://'.$_SERVER['SERVER_NAME'].'/wp-admin/post.php?action=edit&post='.$post_ID; // construct url for editing of post echo 'Redirect to ' . $new_post_redirect; // wp_redirect($post_redirect); redirect to edit page for new post. exit; } new_post_category();
It’s pretty straightforward, and it should work. And it does — except for the
wp_insert_post()
statement. With that (and the final redirect) commented out the link gives me:<blockquote>
Hello world! Go add a new one! This should be a new post in category 8
Array ( [post_status] => draft [post_date] => 2012-07-11 01:44:29 [post_type] => post [post_category] => Array ( [0] => 8 ) )
This should be the new post ID: post_ID_string
Redirect to https://example.com/wp-admin/post.php?action=edit&post=post_ID_string</blockquote>
The category is there, the post array is there; and the $post_ID is as it was assigned. If I uncomment the `wp_insert_post()’ function, though, instead of simply replacing “post_ID_string” with the new ID, I get:
Hello world! Go add a new one! This should be a new post in category 8
Array ( [post_status] => draft [post_date] => 2012-07-11 01:51:49 [post_type] => post [post_category] => Array ( [0] => 8 ) )
Fatal error: Call to undefined function wp_insert_post() in /home/… /wp-content/plugins/wp-category-manager/wpcm-newPost.php on line 16It seems that calling the file directly does not give it access to WP core functions (https://wordpress.stackexchange.com/questions/7398/how-to-include-php-files-in-plugins-the-correct-way), and I’ve been unable to figure out the proper way to call this so those functions are included. Which path to include? Or should this be a template that gets called instead of a direct call to the file? Or…?
Forum: Fixing WordPress
In reply to: Extra space @ top of pageHaving trouble with this one also! Genesis child theme, latest WP, https://readingcirclebooks.com/development-rcb-1/
Ha! I’ve been trying to figure that out as well!
Lower down, there’s a “Create new page” option which is also pretty obscure, especially in it’s relation to to that “Page link to.” I think it is to give the gallery it’s own Page, so that the url can be something pretty like https://www.example.com/zzz-gallery-test/2011-my-nifty-new-gallery/, rather than being embedded in another post or Page, or having an album-display url like https://www.example.com/zzz-gallery-test/?album=7&gallery=18.
Thanks for pointing out that the “Page Link” info shows up in the album data. I notice that the “edit album” dialogue lets you change this for albums as well. I wondered if it would attach the gallery or album to the page as a media attachment, the way images are when you upload them with the editor; but when I check from the media button on the edit Page screen, I don’t see the linked gallery or album there.
Forum: Fixing WordPress
In reply to: Password Protection Not Working in IEThis is a known browser issue with IE: https://en.forums.wordpress.com/topic/i-am-not-able-to-password-protect-some-pages-in-my-blog
Clearing IE’s browser cache under Tools=>Internet Options or CTRL+F5 solves the problem for me. The keyboard shortcut is pretty simple, so I could add a note to the Page that links to the protected page letting users know that they should try it if they have problems. That doesn’t really solve the problem, though, since I’d have to add such a note to every link to the Page!
The more logical place for it would be on the password form itself, but WP does not give you a way to do that by default. Fortunately, there’s a plugin for that: https://www.ads-software.com/extend/plugins/password-protect-enhancement/ will add a box to the page editor in which you can enter whatever text you like (and also choose whether to display an excerpt of a protected post or not).
Any chance that could be added to the publish box in the future? May have to learn how to submit a ticket… ??
Forum: Fixing WordPress
In reply to: Password Protection Not Working in IEProblem still exists in WP 3.1-RC3 – exactly the same behavior! Anyone find a solution yet?
Forum: Networking WordPress
In reply to: A multisite within a multisite or two posting pages in one blog?Looks like that plugin is very similar to the custom menu features that are now part of the WP core.
It is odd that you are seeing the default Page menus rather than the custom menus you are trying to create. Perhaps the menu you created (with custom links or whatever you like) still needs to be assigned to the theme location below your header?
Forum: Networking WordPress
In reply to: A multisite within a multisite or two posting pages in one blog?Some good overviews here:
https://www.pearsonified.com/2008/02/what_every_blogger_needs_to_know_about_categories.php
and here: https://codex.www.ads-software.com/Category_TemplatesForum: Networking WordPress
In reply to: A multisite within a multisite or two posting pages in one blog?Hi, jiri2!
It seems to me that Andrea is (as expected) on target with this – you can probably do what you want with some creative theme design (custom menus, maybe customizing The Loop here & there).
right now i’d like lots of post pages on a subdomain…
think a portal that has youtube posts on one page, picture posts on another page and articles posts on another page.
Sounds like something that could be handled by categories on a more conventional site, but that you would like a little more separation than usual, both for the readers and for the writer(s). In addition, it sounds like when your readers click through from the main hub site (1st level), you’d like them to find a video/image/article/whatever site (2nd level, maybe on it’s own Top Level Domain) that has the ability to make it’s own set of sub-sites (3rd level), as distinguished from a stand-alone site with several sections. And the reason you want those second level sites to be able to generate their own third level sub-sites is because each second level site will be handling several distinct stream of posts, each displayed (and composed?) in it’s own distinct location / page on the level 2 site (what you’ve called “multipagepost”) – which seems too complex for a single 2nd level site to handle (which is where we’re thinking the creative custom themes would come in).
Does that sound right?
Forum: Alpha/Beta/RC
In reply to: Existing Pages on multisite giving 404Went to Settings => Permalinks on the affected blog, selected “Default” and saved it, re-selected the permalink structure I wanted and saved it — and voila, the Page is back.
Thanks, matey!
Forum: Plugins
In reply to: Worm in WP Responder Email Newsletter and Autoresponder Plugin???I also am getting virus warnings from this plugin. This morning my hosting company quarantined one of the files (forms.php) because it looked like an exploit, and I am also getting warnings from my own scans on the use of
eval()
in actions.php.Obviously, I can’t have files disappearing into quarantine without warning, so this makes the plugin unusable for me. That’s a shame, since it looks like a very useful plugin. Any word on a fix?
Forum: Networking WordPress
In reply to: Pages not showing, Permalinks issue using Multisite