thx for the report – haven’t tested my plugin under Phalanger yet (haven’t even heard about it before 😉
Is there an option to get temporary admin access on this site so that I can verify & fix the issue? I currently don’t have the know how & ressources to set up a Phalanger test site…
best,
Robert
Sorry, this is a customer’s site which is not public. The error returned by phalanger is when it tries to execute
Class_leaflet_options::display_mapdefaults_section()
(or any function with a similar name, corresponding to your admin sections), since these do not exist. Because phalanger compiles php, it seems to have stricter rules. I modified your code to this, which seems to fix the problem without side-effects, but I’m not sure if this is the correct syntax or name to check for (perhaps it should be qualified somehow by the class name?):
...
if (function_exists('display_'.$pane_slug.'_section')) {
@call_user_function(array(&this, 'display_'.$pane_slug.'_section'), array();
}
...
Although, I’m a developer (.Net & stuff), I’m not familiar at all with PHP or WordPress, sorry if I can’t help more.
I saw no other problems with this excellent plugin under phalanger.
Keep up the good work!
thanks for the hint – anyway I have to check this intensively as settings class is a key component of my plugin which I wouldn’t want to break 😉
do you know any tutorial on how to quickly set up a wp site on phalanger? wouldn’t feel good about making changes here with having the possibility to check the consequences…
If you just want to verify that your plugin works, try downloading the zip from http://wpdotnet.com/.
Use a Windows machine (duh…) with MySql installed (re-duh). Create an empty schema for WordPress to use and a MySQL user with all privileges for this schema.
Then, unzip wpdotnet to a folder, point a new IIS web site to this folder (don’t forget to set the host name and also declare it in your hosts file) and start browsing to this site. The usual wizard will guide you through to the WP installation. Upgrade to the last WP version and install your plugin the normal way.
What this setup does, is basically a portable installation of wordpress/phalanger (there will also be a BIN folder under the root and a web.config file to use by .Net). Do not install other plugins at this point as they might depend on php extensions that are not installed by this setup (in particular, image upload might not work without mods).
You can debug (kinda…) with Visual Studio and its PHP Tools extension (set debug to true in web.config – 2 places).
For more complex setups, there are various settings that depend on the php extensions you need, the net frameworks used, your IIS defaults and a lot of other factors, but for a bare-bones installation this should do. There is information on the net, but feel free to ask me if you run into trouble 🙂
thanks a lot for your detailled tutorial – will try that out later this month…
Hi again,
thanks a lot for pointing this out – I included your change on my test server and didnt notice any issues. So the fix has been included in the current v3.5.4 release as hotfix – just in case there are some sideeffects which I wouldnt want to have together with v3.6, which will be released together with v1.0 😉
best,
Robert