Forum Replies Created

Viewing 15 replies - 121 through 135 (of 179 total)
  • I wonder if it applies to <div>. I havent tested that but I did notice since the WP 3.5 update every time I edit a previously saved post – it strips all the changes before updating – meaning I cant.
    But wrapped in a <div> ths behaviour does not occur.

    Thread Starter CallMeAndy

    (@callmeandy)

    Resolved

    Thread Starter CallMeAndy

    (@callmeandy)

    Allen – things interfered I’m afraid anyway back on the case earlier.
    So retracting my original statement as you said in spite of the error message the feed does render, so cool I can live with that.

    Thanks for your help.

    I’ve just started playing with Yahoo pipes which might be able to service you – its a bit of a lerning curve though – and not definitely a solution. I was just getting the feed to format in order to take advantage of the auto-embed method for video, and this worked fine when looking at the feed in RSSOwl and the wordpress plugin FeedWordPress (which currently is not a solution because of the way it handles excerpts) but as I am about to post (and probably wont get a solution to) it doesnt even fetch the YP feed with this or some other autobloggers I am looking at.

    Probably not much help but you never know.

    Thread Starter CallMeAndy

    (@callmeandy)

    Hi Allen,
    Yes this is exactly what I’m doing.
    Hopefully later today I will disable all the plugins and go to default theme etc and see if there is a conflict but a bit pushed for time at the moment.

    Your commitment to user issues is looking exceptional BTW, hats off my friend.

    Thread Starter CallMeAndy

    (@callmeandy)

    Ok thanks for coming back Allen.

    The empty space I dont think I have any control over. I believe it is a formatting issue with the way yahoo pipes bolts together the post elements.

    That aside I am still not getting any feed come through into the posts, the message “The most recent feeds have been put into posts” is posted to the admin window after using the fetch button, but nothing ariving in the posts tab. When you said it renders to the site do I assume your test was direct to a template without the draft post stage.
    Only I wish to bring in each post into a draft post.

    I dont know if it is relevent but I am using multisite. The WP is 3.5
    Thanks

    Jan – Ok tonge in cheek perhaps but you have started in a similar vein by suggesting that my view is based on my being too intense. This is not healthy.

    But it (apparently, no one’s done a statistical study [why would they?]) works for most people just fine and no one is downplaying criticisms.

    Thats my point you dont know if it works fine for most people, silence is not an indicator of satisfaction. I dont know if the silence is being maintained in satisfaction or disatisfaction, but the team would benefit from the knowledge.

    vikkineal has expressed the point better than I, what is the point on the visual editor if it has no real value? It simply confuses people.

    Look at this thread so far:
    2 proponents – both moderators – maybe that means something for a start
    3 that would prefer it were different
    1 neutral

    OK that’s fair then I should have said:

    It’s all well and good saying stick to the HTML editor but folks want a visual quick assurance, without a compromise to productivity. This includes professionals.

    As I said before it’s about productivity.

    Ironically of course using the visual editor will burdon people further anyway. They will think they have a more productive option than using the preview but of course, they will add carriage returns etc only to find out later they are not implemented in the script. So in fact the preview maybe the best tool of whats available for visualisation. But this does not mean it is a good solution.

    Esmi you may want to talk down critiscim and pretend there are no faults with WP, and that there are alternative ways of doing things to what users expect, but this is not a healthy option. In order to stay ahead of the pack “the team” needs user feedback.

    I am sure you are thinking for every crtical user there are thousands of happy bunnies. But are there?

    Dont get me wrong overall I think WP is a great tool but there are faults. Maybe “The team” should conduct a survey to be clear about which things, if any, really stress the user base. Myabe many of those thousands are just resigned to the fact that they have to accept the situation, after all what else can you expect from volunteer manpower. There has to be a compromise bewteen what you would like to accomplish in a perfect world and what you are able to accomplish with the time available to you.

    Of course the volunteer aspect of this is the nub, and we all have too many other priorities, but coming back to my assertions that “the team” is likely to want to stay ahead of the pack; it needs to listen to do that. A few voices in the wind does not mean there is only a small degree of irritation/dissatisfaction.

    It’s all well and good saying stick to the HTML editor but folks want a visual quick assurance. This includes professionals. It’s about productivity.

    I just read a post from a couple of years back with someone spouting off from sort of superiority platform that you should use only the html editor or learn PHP and edit the core files to change WP functionality.

    Thats just a ridiculous position. I wonder if the same person would have the view that professional programmers should stop using Visual Studio, or other IDE’s immediately, because productivity is not important they should be constantly prooving they can do everything with a text editor and command line only compilers. Talk about a step backwards.

    Also spare a thought for those who want more control than the visual WP editor offers and who know enough html that they ought to be able to do certain things on the html tab, some of whom NEED a visual confirmation that everything is sitting pretty.

    Thread Starter CallMeAndy

    (@callmeandy)

    I am sure it will all come out in the wash! Fingers crossed and good luck.

    Forum: Fixing WordPress
    In reply to: How do users post?
    Thread Starter CallMeAndy

    (@callmeandy)

    So Multisite BuddyPress and WP now, all other plugins removed.
    This makes no difference there is no interface for someone newly registerred to act as a contributor.

    On delving it is obvious why – new registrants are not added to existing sites including the main blog. If you add a user manually to the main blog he gets his contributor interface.

    So I guess what I need to know is if there is a way to automatically add him to the main blog on sign-up.

    Thread Starter CallMeAndy

    (@callmeandy)

    Actually I sort of have. I’m not sure what the cause was before but I was on a local development platform and due to migrate to remote test server, firewalls and stuff like that was something I wondered about, anyway rather than ditch it I decided to wait and see what the situation was when online.

    Migrated to online this morning and it is now working. I had the same issue with Social Slider also now working!

    Thread Starter CallMeAndy

    (@callmeandy)

    Got to the bottom of it – I dont read what is writtain I merely assume I have!!!

    As I suspected there was a connection active. Credentials were always correct. So two things led me astray, the first the inappropriate error message. THe second the readin error that I mentioned.

    In the section Moving WordPress Multisite in the text at http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Multisite
    It says this:

    If you’re moving Multisite from one folder to another, you will need to make sure you edit the wp_blogs entries to change the folder name correctly. You should manually review both wp_site and wp_blogs regardless, to ensure all sites were changed correctly.

    The opening line threw me off course thinking the paragraph was about folder moves only, so I must have only scanned what was there and didnt realise I needed to fix the wp-blogs table, but then why would I think that was an issue if there was not yet a database connection!! Ha ha!

    Unfortunatly I spent a load of time debugging the remote install with print_r and echo statements embedded all over the place so I could trace the execution. As you can see below, included for posterity in case anyone is intreested in how you might troubleshoot problems (reading the bloody manual would be a better idea though). The clue I should of seen quicker and I put down to lack of WP experience or knowledge was the get_blog_details() call – which when you look at the code in ms-blogs.php its is quite clear there is already a database connection, and analysing the sql statements enables you to see what data might be missing – of course all my blogs were still showing localhost.

    After that for anyone looking for a quick passage to getting your data in shape try the searchandreplacetool

    Saved me ages. Particularly in relation to post data.

    Anyway thanks for your time guys,
    a sounding board always help.

    So for posterity and anyone wanting to debug remotely here is an example – which is no doubt totally worst practice but will get you there!——-
    Actually $current_blog was derived just a few lines above in ms-settings.php
    I put the debug lines in the code below but to be frank I am not sure

    if ( is_subdomain_install() ) {
    ...
    }else{
         $blogname = htmlspecialchars( substr( $_SERVER[ 'REQUEST_URI' ], strlen( $path ) ) );
    
            if (defined('WP_DEBUG')){
                echo '
                $_SERVER[ "REQUEST_URI" ] ="';
                print_r($_SERVER[ 'REQUEST_URI' ]);
                echo '"';
            }
    
    		if ( false !== strpos( $blogname, '/' ) )
    			$blogname = substr( $blogname, 0, strpos( $blogname, '/' ) );
    		if ( false !== strpos( $blogname, '?' ) )
    			$blogname = substr( $blogname, 0, strpos( $blogname, '?' ) );
            if (defined('WP_DEBUG'))
                echo '
                $blogname ='.$blogname;
    		$reserved_blognames = array( 'page', 'comments', 'blog', 'wp-admin', 'wp-includes', 'wp-content', 'files', 'feed' );
    		if ( $blogname != '' && ! in_array( $blogname, $reserved_blognames ) && ! is_file( $blogname ) )
    			$path .= $blogname . '/';
    
            if (defined('WP_DEBUG'))
                echo '
                $domain = '.$domain.' $path ="'.$path.'"';
    
    		$current_blog = wp_cache_get( 'current_blog_' . $domain . $path, 'site-options' );
    
            if (defined('WP_DEBUG')){
                echo '
                $current_blog(1)=';
                print_r($current_blog);
            }
    
    		if ( ! $current_blog ) {
    			$current_blog = get_blog_details( array( 'domain' => $domain, 'path' => $path ), false );
                if (defined('WP_DEBUG')){
                    echo '
                    $current_blog(2)=';
                    print_r($current_blog);
                }
    			if ( $current_blog )
    				wp_cache_set( 'current_blog_' . $domain . $path, $current_blog, 'site-options' );
    		}
    		unset($reserved_blognames);
    	}

    The output from this was

    $_SERVER[ “REQUEST_URI” ] =”/”
    $blogname =
    $domain = adventurebod.com $path =”/”
    $current_blog(1)=
    $current_blog(2)=
    $current_site = stdClass Object
    (
    [id] => 1
    [domain] => adventurebod.com
    [path] => /
    [blog_id] => 1
    [cookie_domain] => adventurebod.com
    )
    <h1>Error establishing database connection</h1>

    Thread Starter CallMeAndy

    (@callmeandy)

    Right a new day! The message must be a misnomer.
    It is a a fact that the very simple db check script that I mentioned runs from the credentials in wp-config.php and it is able to list the tables so therfore there is a connection.

    I put some output debug statements in the code to try and see whats going on on the remote:

    In the code for ms-settings.php we have:

    if ( ! defined( 'WP_INSTALLING' ) ) {
    ...
           if ( ! $current_blog || ! $current_site ){
                if ($current_blog ){
                    echo '$current_blog =';
                    print_r($current_blog);
                }
                if ($current_site){
                    echo('
                    $current_site = ');
                    print_r($current_site);
                }
    	    ms_not_installed();
            }
    ...

    this was the resulting output prior to database connection error output.

    $current_site = stdClass Object ( [id] => 1 [domain] => adventurebod.com [path] => / [blog_id] => 1 [cookie_domain] => adventurebod.com )

    So it seems $current_site is instantiated and $current_blog is not
    I put in the output lines to try and see why ms_not_installed() was being triggered, as this is the function that is killing the process. You can look at that yourself but its not a decision making function, principly it just formats the database error message and then dies:

    if ( ! is_admin() )
    die( $msg );

    is_admin is declared thus:

    function is_admin() {
    	if ( defined( 'WP_ADMIN' ) )
    		return WP_ADMIN;
    	return false;
    }

    I can only see WP_ADMIN defined in two likely files (although there are two unlikely from the file names) and for both of them comments in the code say that we are in an admin screen. Which we are not so it seems once execution reaches ms_not_installed in this case with unequal blog and site objects – its all over.

    Obviously I still need to delve and see what should determine the $current_blog — it appears that hasnt happened, and I wonder if an assumption has crept into the code that this means a failed connection.

    Thread Starter CallMeAndy

    (@callmeandy)

    No

    Local setup = development environment WAMP and phpmyadmin. This install of phMyadmin only connecting locally

    Remote setup = No dev, LAMP cPanel and phpmyadmin. Using this install of phpMyadmin only to connect within the remote environment

    I wonder if you see it differently the way i have left things at the moment is with:

    define(‘SUBDOMAIN_INSTALL’, false);

    which seems logical as this is a subdirectory implementation, unyet the original configuration read true and was created by WP autmotically. Right now niether value is redirecting which is strange as I am sure changing this value was switching back and forth between redirect and connection issues. But I am getting tired and really need to go to bed.

    Thanks for you help so far.

Viewing 15 replies - 121 through 135 (of 179 total)