INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

WP Upgrade -> 3.6 (Network update fails)

WP Upgrade -> 3.6 (Network update fails)

(OP)
Hi,

I just upgraded WP from 3.52 -> 3.6 , however when I click the network update I get the following error...

Quote:

Warning! Problem updating https://www.mydomain.com/my-wp-site. Your server may not be able to connect to sites running on it. Error message: Could not open handle for fopen() to https://www.mydomain.com/my-wp-site/wp-admin/upgra...

I've checked the php.ini and I definitely have

CODE

allow_url_fopen = On 

Any ideas?

Thanks,
1DMF

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads

RE: WP Upgrade -> 3.6 (Network update fails)

i'm a bit confused about why the fopen() call is to a file on your server. that's a bit odd but I guess the file is intermediating the transfer.

two thoughts:

1. there is a dns error such that your local dns server does not know that your domain is on your server. log in via ssh and try an nslookup. you may be able to solve this either by manually updating the dns records, or changing the dns server to (say) a public dns like 8.8.8.8 (or add as secondary dns), or adding a manual record in /etc/hosts http://en.wikipedia.org/wiki/Hosts_(file)

2. if you are using a host like godaddy they will block fopen and curl and wget etc, irrespective of your php settings.

RE: WP Upgrade -> 3.6 (Network update fails)

(OP)
Hi jpadie,

nslookup works fine, it returns our webserver's public IP address for our domain, so I guess it can't be that?

Quote:


C:\Users\admin>nslookup mydomain.com
Server: google-public-dns-a.google.com
Address: 8.8.8.8

Non-authoritative answer:
Name: mydomain.com
Address: xxx.xxx.xxx.xxx
1DMF

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads

RE: WP Upgrade -> 3.6 (Network update fails)

yup. so sounds like it's a host level block.

there is a plugin that will test that for you. written by Dion (a wp-dev). I don't recall precisely its name but something like 'core connect'?

RE: WP Upgrade -> 3.6 (Network update fails)

(OP)
Well I downgraded back to 3.5.2 for the time being and restored MySQL.

v3.5.1 -> v3.5.2 worked fine , just this new v3.6 that won't!

Then again I had major issues upgrading from v3.?.? -> v3.5.1 perhaps this is a trend.

I'll wait for 3.6+ to come out and try again then.

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads

RE: WP Upgrade -> 3.6 (Network update fails)

i've never entirely trusted the network upgrades. I have always always always uploaded the files myself, and installed plugins by hand.

i may be a luddite, but i'd advise doing it that way. the idea of allowing a script that is designed by someone else to have access to my servers is ... disconcerting!

RE: WP Upgrade -> 3.6 (Network update fails)

(OP)
Well the network upgrade seems to be a DB update, so not sure how I would make those changes manually, I don't know what they are to start with.

The upgrade of WP itself has never worked work and I have to manually install that anyway, it seems even though WP claims to be Windows compatible, it isn't and nor is 95% of the stuff for it!

I'm forever finding upgrades, plugins, themes etc. all still trying to use *nix OS commands to do stuff, which obviously fails on Windows!

It's frustrating when you pay good money for a WP plugin, only to find it doesn't work on Windows, WP is meant to be OS independent and so if you write a WP plugin that MUST be OS independent also, otherwise it isn't a WP plugin it is a *nix WP plugin - there is a difference!

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads

RE: WP Upgrade -> 3.6 (Network update fails)

when you update the core files, the db will update on the next use of the site. (if necessary).

of course - whenever you do a manual install (or network install) you should disable all plugins before and then enable them one by one after.

not convinced you should pay money for a wp theme or plugin personally! I suspect that there is greater support by those who give things freely than small developers who try to make a buck from their WP contributions. But I know that WP is not an easy framework to use to its fullness so sometimes the only way is commercial.

RE: WP Upgrade -> 3.6 (Network update fails)

(OP)

Quote:

not convinced you should pay money for a wp theme or plugin personally!

Yes, we needed a plugin to enable network site replication - not sure how you would do that manually or even if it is advisable. However, the plugin developer had used *nix commands in it to copy over resources such as the images, which obviously broke and I had to rewrite part of the plugin to use windows copy commands!

Surely there is a PHP command to copy files from one file system location to another? Isn't it obvious the minute you start typing a shell command you are not using PHP or the WP framework but the underlying OS?

With regard to the MU installation, it seems every time I upgrade WP core (manually), the admin then says I have to run a network update which seems to have a QS argument of

CODE

?step=upgrade_db 

One assumes it has to perform some database maintenance against each and every WP site under our MU install, surely not something I would want to do by hand?

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads

RE: WP Upgrade -> 3.6 (Network update fails)

CODE

we needed a plugin to enable network site replication 

not sure what you mean by that. but if it is:

1. all files must be replicated across servers
2. all database tables must be replicated across servers

then i would steer miles away from php and wordpress for that. possible, but very very ugly.

the easiest ways (and most robust) to achieve this are :

1. use network tunnels to access data stores. so there is a central location for the wp-content directory. wp handles this already; and a remote mysql instance (no problem)
2. use a cluster solution for the files
3. set up a cron job to fire an rsync event every minute to replicate the files across servers and set up the mysql instances in master-slave relationships
4. write a little script to bind to the notify event in *nix and automatically replicate files.

but note that file system level copy events may well break wordpress.

Quote:


Surely there is a PHP command to copy files from one file system location to another? Isn't it obvious the minute you start typing a shell command you are not using PHP or the WP framework but the underlying OS?
sure. it's called 'copy'. but I would not think it a great idea. much much better is a centralised wp-content directory unless there are reasons why that is not possible.

after you change any core files wp runs the upgrade_db function. that does not mean it _has_ to upgrade the database; but that it has to check whether a db upgrade is needed.

I'm not an MU expert at all. I have never worked with WP MU as offered by wordpress - but always rolled my own MU instances (with common wp-content folders, common databases etc) via some minimal changes to the config file..

RE: WP Upgrade -> 3.6 (Network update fails)

(OP)
Hi jpadie,

I think I may not have explained myself properly.

Replication of a site within the MU WP install not across servers?

We have two WP sites that are templates which are cloned / replicated when a member takes out a website service from us.

The only way to do this AFAIK is with the site replicator plugin, it creates site ID's , inserts cloned DB data, copies images files to the wp-content/blogs.dir/SiteID/files/Year/Month structure, clones theme config settings etc.

I certainly wouldn't want to have to do all that by hand, and I don't know WP enough to write my own code.

To run WP in a MU network site environment, you must install the MU site version of WP according to WordPress?

Also remember this is all on Windows, no such thing as cron?

Quote:

much much better is a centralised wp-content directory
? How, WP MU when using relative URLs looks for files in a specific location wp-content/blogs.dir/siteid/files/... this would break if they didn't have their own independent location, also I have no idea how you would manage the images via the media library, only images in the special siteid specific folders show up in the media library, I was not aware of a global library for all MU sites? nor would you want one, the last thing you want when accessing a specific site and the media library is to have 100's of images relating to other companies nothing to do with the one you are working on?



"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads

RE: WP Upgrade -> 3.6 (Network update fails)

ah. I had understood replication to be for the purposes of having multiple servers for redundancy and performance. which would be normal.

there are ways to provide multiple site wp installs without using mu. I wrote a simple solution a number of years back and posted it here from memory. maybe in the FAQ. but of course that method is not canonical.

windoze has cron. it is called scheduled tasks. but really I'd avoid windows for hosting environments (on cost alone) unless there is a hardcore reason it must be used (like requirement for native ms office support).

happy to take a proper look at your plugin if you want to post it. or I can probably write you one in pure php but I couldn't test it in windows.

RE: WP Upgrade -> 3.6 (Network update fails)

(OP)
Do you have an email on your personal site, I could send you the plugin, it doesn't work properly still as running shell on windows from PHP fails!

Quote:

but really I'd avoid windows for hosting environments (on cost alone) unless there is a hardcore reason it must be used

Yes, we have a windows Server IIS7 , it runs all our web stuff, and integrates with MS SQL it also runs web services for a 3rd party system we also host ( 5 server Hyper-V environment) TS, IIS7, SQL WG, SQL Express & File Server.

Why would I want to use anything else when this is what is at my disposal?

I like IIS , it works and I know how to use it, So far I've not had a reason to add additional costs to the company just to run a separate *nix server and all the hassle that would go with learning a new OS and configuration. *nix appears to be stuck in the dark ages and is all command line, I like GUI's, it's the way of the future you know blllttt

Seriously though, I have an old ML350 server the boss has given me and I intend to take it home and load LAMP plus Perl & Catalyst just to have a play and see what the fuss is all about. If I can find all the drivers needed to run *nix on it as it's an old Windows SBS2003 server!

Anyway , have a great weekend, it's beer o'clock!


"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads

RE: WP Upgrade -> 3.6 (Network update fails)

well I guess the opposing point of view would be that all that cash spent on the virtualising OS and virtual OS clients might have been spent on hardware instead. but horses for courses.

sure send me the plugin and I will have a look. you can find my email address on the about pave of rathercurious.net.

RE: WP Upgrade -> 3.6 (Network update fails)

(OP)
There appears to be something wrong with your site?

the about page says

Quote:

About

This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many pages like this one or sub-pages as you like and manage all of your content inside of WordPress.

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads

RE: WP Upgrade -> 3.6 (Network update fails)

thanks. never noticed the duplicate about menu item (many years of uptime too - most odd). I have deleted it now. have also sent a potential fix to your email account which would be worthy of reporting here as a FAQ in the php forum or just in this thread if it does fix the issue

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close