henningsprang
Forum Replies Created
-
Forum: Plugins
In reply to: Using api.wordpress.org for update checkand here some links to the docs(also adding them to the wiki right now):
* http://dd32.id.au/projects/wordpressorg-plugin-information-api-docs/
* http://codex.wordpress.org/WordPress.org_API
* http://ckon.wordpress.com/2010/07/20/undocumented-wordpress-org-plugin-api/Forum: Plugins
In reply to: Using api.wordpress.org for update check(marking this as solved as i found out the answer myself and documented it here – as said, anybody who needs more details – you’re welcome to ask)
Forum: Plugins
In reply to: Using api.wordpress.org for update checkSorry for not posting the solution.
I found some documentation abpout using the wordpress api to get information about plugins, it is available in various formats, like:
http://api.wordpress.org/plugins/info/1.0/authenticator.json
http://api.wordpress.org/plugins/info/1.0/authenticator.php
http://api.wordpress.org/plugins/info/1.0/authenticator.xmlThere you find the latest version available for plugins hosted in the official repositories (and we’re trying to use only these).
Another crucial part is to find the version of a plugin you have in place, which is harder because there is no standard place in a plugin directory where it must be written.
WordPress istself contains code with a complex logic to find the version of a plugin, which I turned out to be using.
If you need further information, please ask, I can dig it out for you, and/or try to clean my code for creating and updating the self-built RPM packages from company specific parts and publish it.Forum: Plugins
In reply to: api.wordpress.org plugin info no php output anymore?Hi salubrio,
No this API functionality is not used by wordpress itself when looking for updates.
I only use it in scripts that I’ve written to check for updates of plugins that I have packaged as RPM for a customer who prefers to deploy them in a native Linux package format and not to depend on checking the web GUI of each installation manually for updates.The Blogs that I run with updates over the Web GUI show Updates as usual – I guess as much more people use this, this would have made much bigger waves than this thing here 😉
Forum: Plugins
In reply to: api.wordpress.org plugin info no php output anymore?And by the way, thanks guys – once i got the right question it didn’t take long to get the answer. This api stuff is really cool to write custom packaging and update code 🙂
Forum: Plugins
In reply to: api.wordpress.org plugin info no php output anymore?yes, even better.
I got the info about the api from there, and found not many other docs about it(otherwise it couldn’t be called undocumented 😉 ) :
http://ckon.wordpress.com/2010/07/20/undocumented-wordpress-org-plugin-api/
Forum: Plugins
In reply to: api.wordpress.org plugin info no php output anymore?O.K.
So I’m assuming this functionality will keep being there and isn’t deprecated – and I’m not going to have to rewrite my packaging scripts, great 🙂
If there’s anything I can do to help, don’t hesitate to let my know!
Forum: Plugins
In reply to: api.wordpress.org plugin info no php output anymore?I don’t know if that’s also considered a bump, but I’m trying to clarify/change the question, as there has been no answer as to of yet:
Who is actually running the system api.wordpress.org, and how can I contact this person/group?
I guess they know the answer I’m looking for better than a user/developer forum. Just I see no way how to contact them.
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Error output to debug problemsBTW: I’d be happy to provide a patch warning users that empty mails cannot be sent, but I’m not sure where and how it’s best implemented.
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Error output to debug problemsAfter searching further, testing sending mail directly with the php mail command, which worked well, I finally found the Problem and the solution:
The Form was not configured to include the Text input into the the mail, so the message body was empty, and this seems not to work.
While it’s somehow dumb when users like my try sending empty mails, a system that refuses to send such an empty mail should also tell the user that it does so and why, so debugging is easier. Any action that leads to an error should result in an error message in the webserver’s log file.
Forum: Networking WordPress
In reply to: Widgets breaking when importing live data to development copyAs I needed a solution that is scriptable and does not require using the web GUI or anything like “got through tables manually” because I want to be able to import live data continuously, easily fast, I wrote a shell script that works well for me.
Turned out to be much simpler than it looked in the end. Obviously, even though the hostname is contained in many serialized arrays, there seems to be no need to replace all these occurences.
If that need would arise, I’d go to rewrite this script in php and do an unserialize – replace hostname – serialize – save action for each of them.DB_BASE_COMMAND="mysql -h $DB_HOST -u $DB_USER $DB_PASSARG $DB_NAME -e" # set password to testtesttest to prevent confusion with the live system login! $DB_BASE_COMMAND 'UPDATE wp_mu_users set user_pass="$P$BShSdURpZajVRVrWIX5i/PX/MB24H1.";' $DB_BASE_COMMAND "UPDATE wp_mu_site set domain = '$HOSTNAME' where id = 1;" $DB_BASE_COMMAND "UPDATE wp_mu_blogs set domain = '$HOSTNAME';" $DB_BASE_COMMAND "UPDATE wp_mu_options SET option_value = 'http://$HOSTNAME' WHERE option_name = 'home' OR option_name = 'siteurl' ;" BLOG_IDS=<code>$DB_BASE_COMMAND 'select blog_id from wp_mu_blogs where blog_id!=1 \G;' | grep blog_id | cut -f 2 -d\</code> for blog in $BLOG_IDS; do BLOG_PATH=<code>$DB_BASE_COMMAND "select path from wp_mu_blogs where blog_id=${blog}\G;" | grep path | cut -f 2 -d \</code> #echo $BLOG_PATH $DB_BASE_COMMAND "UPDATE wp_mu_${blog}_options SET option_value = 'http://${HOSTNAME}${BLOG_PATH}' WHERE option_name = 'home' OR option_name = 'siteurl';" done # turn off domain mapping $DB_BASE_COMMAND 'UPDATE wp_mu_domain_mapping set active = 0;'Forum: Networking WordPress
In reply to: Widgets breaking when importing live data to development copyThanks!
I’m going to figure how I’ll get this done.
Either I have to use an intelligent regex to leave these untouched when running sed over a full live db dump, or something else.Forum: Networking WordPress
In reply to: Widgets breaking when importing live data to development copyThanks for your reply, I guess we mean the same, I’m just looking from the other end and my description is heavily oversimplified, as I admit 😉
Unfortunately, these ways are not well suited for our environment – changing hosts files is not easy for people with Mac’s or Windows in our corporate environment, and also changing development names to match a specific length sounds ugly and won’t work with all names.
Another hack that might work is to use a proxy with a faked hosts file.We gonna see what we will do, maybe digging deeper into the code to find out in detail how widget settings work. Even though there’s something coded at a deeper level, there must also be a way to change/trick this. At least I hope so…
Forum: Networking WordPress
In reply to: Widgets breaking when importing live data to development copyThanks for your reply!
Yes, the domain names have different lengths. I’m doing a simple replacement of domain names directly in the SQL dump file with sed befor importing into the development instance. And that works well for all other things. Contents are shown correctly, just widget settings seem wrong – and even those not all.
So, you’re saying, widget settings are not retrieved from the system simply by hostname, as content is, but some other way, if I get it right.
Is there any “proper” way to get what I want – a domain name migration, or a complete import of all content and settings including widget settings from the live site to a development copy?