Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Matthew Molloy
@whamtet
Hi @jakubmisek great work on peachpie!!! I'm running wpdotnet sdk, it works especially well from JetBrains Rider, much better than Visual Studio. Has anybody made workpress plugins that reference the .NET ecosystem? I'm wondering how much this has actually been deployed into production.
Jakub Míšek
@jakubmisek
@whamtet awesome, thank you! actually, we're using for example .NET mail functions from our peachpie.io website. We have both the plugins completely written in C#, and some PHP plugins calling .NET methods as well.
Matthew Molloy
@whamtet
@jakubmisek great to hear. Do you develop on Windows? Peachpie runs fine on OSX .Net Core, but the test suite is failing for some reason. Something to do with COM calls which aren't available on OSX
Jakub Míšek
@jakubmisek
@whamtet yes, we have build chains on windows and linux. Although COM tests should not be included in the master branch as I know. Will check that!
Matthew Molloy
@whamtet
@jakubmisek there's a bulk of 511 tests all of which seem to depend on COM, attached test output for your reference. Is it really necessary to have COM to run all these tests? What about on linux?
Jakub Míšek
@jakubmisek
I see! seems it is writing the old-style windows PDB debug information by default. For the tests, it should be changed to portable-pdb which is supported on all platforms. I'll fix it now.
thanks @whamtet
Matthew Molloy
@whamtet
Thanks @jakubmisek, please let me know once you've committed and I'll try running again.
Jakub Míšek
@jakubmisek
@whamtet it should be there, please let me know if it helped
Matthew Molloy
@whamtet
Great work @jakubmisek , there's still about 15 failing but that must be due to system differences. I will try to provide some help with this because I think its an amazing project.
Jakub Míšek
@jakubmisek
thank you :) we're continuously testing on windows ofc, but any fixes to linux/osx platform are welcome
Matthew Molloy
@whamtet
Great!
dev852com
@dev852com
Tried to dockerize asp.net wordpress today
everything in /app... how do I separate persistent files like /var/www/html?
also environment variables in docker-compose files doesn't work
Lance Matsushige
@FuriousFop_gitlab
has anyone tried to do anything with LDAP and sso at all with this? Seems to me like it would be easier to just use a c# library and call to it rather than mess around with converting the ldap libraries over
KygekDev
@KygekDev

@KygekDev welcome!

Thanks for your greetings @jakubmisek !

Jakub Míšek
@jakubmisek
@FuriousFop_gitlab haven't tried LDAP but C# libraries can be easily used for that, for example, if you'd like to create a wpdotnet plugin in C# that overrides the default authentication mechanism of WordPress
Jakub Míšek
@jakubmisek

@dev852com as wpdotnet-sdk project is configured now, WordPress content files are copied in a subfolder /wordpress.

If you'd like to put those files somewhere else, you'd have to

  • move this folder wherever you want
  • in your Program.cs or Startup.cs alter the following line:
    app.UseWordPress();
    with
    app.UseWordPress("PATH_TO_WORDPRESS_FOLDER");
Lance Matsushige
@FuriousFop_gitlab
thanks @jakubmisek, there are a couple of libraries I'm looking into
Tony Olsen
@TonyOls62378228_twitter

Newbie Warning:
1) What is the most common server configurations used to run PeachPie applications (Net Core compiled PHP applications), like WpDotNet, on? For example: WpDotNet running on Kestrel which receives traffic through Apache HTTP server routing? (Did I say that right?)

2) Do I assume correctly that I can have my own custom asp.net core page running next to the WpDotNet on the same server? (So that the WpDotNet templates can be augmented with my own custom asp.net core pages?)

3) I can see multiple $6/month PHP word press hosting options. Are there any cheap hosting options available that host web pages using WpDotNet, and that offer SSL, email, ftp, etc?

Tony Olsen
@TonyOls62378228_twitter
(Note: For question 3, I'm NOT talking about a hosted server where I set it up myself, but instead a hosted website on a service I pay to have someone else maintain)
Jakub Míšek
@jakubmisek

@TonyOls62378228_twitter thank you for the questions!

1 - The one we run it on is Kestrel in the ASP.NET Core 5.0 app, hosted on Azure (which is IIS). Although, anything supporting asp.net core works, including nginx and apache (https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-apache?view=aspnetcore-5.0)

2 - Yes, WpDotNet is just another piece in your application request pipeline. The same app can serve static files, razor pages, WordPress pages, ... all in one, and they can interoperate with each other since they run in the same process. (https://docs.peachpie.io/scenarios/wordpress/overview/#quick-start)

3 - Currently I would recommend Azure; wpdotnet is built to use its built-in MySql database without the need for configuration. Anyways, any ASP.NET Core hosting works. Makes the best sense, if you require .NET on your backend.

Tony Olsen
@TonyOls62378228_twitter

Thank you. :-)

So this is primarily a Windows shop. I've been on Windows all my life and it's also what we use at work... but it's pricey when hosting your personal website. I was looking to maybe migrate my .Net Framework pages to .Net Core and then use them on Kestrel on an Apache HTTP Linux host.

But maybe using Apache makes the need for WpDotNet obsolete, since Apache supports both PHP and NetCore5 (through Kestrel)?

I'm surprised that there aren't more Apaching hosting options to implement this, since it would be much cheaper than Microsoft licensing.
Steve
@hez2010
You can run your website app directly on Linux and use Apache as a reverse proxy.
Jakub Míšek
@jakubmisek
@TonyOls62378228_twitter it's meant for any platform, although we're internally using Microsoft Azure - both Windows and Linux containers.
Tony Olsen
@TonyOls62378228_twitter
Thanks :-)
Tony Olsen
@TonyOls62378228_twitter
I purchased the Basic package but never got a login or an account and was never asked to provide a new password (apparently there's a new-member email that is normally sent out, but I never got it). I'm assuming my account will continue deducting from my card each month. How do I switch plans - there doesn't appear to be anywhere I can log onto.
Benjamin Fistein
@bfistein

Hi Tony. You should certainly have received an email from our payment processor Stripe. The login would be managed within the Stripe dashboard.

Regarding how to proceed with your wpdotnet subscription, as I said in the email, you must have typed in an email when registering. When you've set up your Wpdotnet site, log in to your dashboard, navigate to the panel that has the WpDotNet logo in it and click "register". Then type in the email you used when purchasing your subscription.

Tony Olsen
@TonyOls62378228_twitter

Yes I entered my email (and confirmed it) with Stripe. I wasn't asked to enter it anywhere else. Yes, I got the receipt email from "iolevel s.r.o. invoice+statements@iolevel.com". I have not received an email with instructions other than our communications (thank you for your help there).

"log in to your dashboard"

"my" dashboard? I don't have one. I suspect I misunderstood what it was I was buying - I thought I was buying a preconfigured WpDotNet setup... but I haven't seen that. Are there prerequisites I need to accomplish first? I have no IIS set up. I have no Azure set up. What steps am I missing?

"When you've set up your Wpdotnet site"

I thought I was paying for a preconfigured site... meaning that someone else was setting this up.

Benjamin Fistein
@bfistein

Ok I see where the confusion is coming from. You are buying a preconfigred WpDotNet setup, but we're not a hosting service. So instead of having to compile the source code yourself, setting up the configuration correctly, compiling all the required plugins etc., we've already set this up for you.

So yes, you need somewhere to host this on, we don't provide that unfortunately.

Tony Olsen
@TonyOls62378228_twitter

Where can I download that setup? Or is this done through WpDotNet after I install it myself on my own server with IIS?

...and I can't change my package options until AFTER I've completed the WpDotNet installation?

Benjamin Fistein
@bfistein

Please follow the step by step instructions here:
https://docs.peachpie.io/scenarios/wordpress/overview/

and here for the configuration:
https://docs.peachpie.io/scenarios/wordpress/configuration/

...and I can't change my package options until AFTER I've completed the WpDotNet installation?

Not sure what you mean by that

Tony Olsen
@TonyOls62378228_twitter

Thanks for the help.

...and I can't change my package options until AFTER I've completed the WpDotNet installation?

Not sure what you mean by that

How to I change my subscription?
1) Through my local WpDotNet installation's dashboard on my server? If so, how can someone change this if they don't have WpDotNet installed?
2) Through a URL on WpDonNet's server? (If so, what's the URL)
3) Something else?

murthyvittala
@murthyvittala
image.png
We are getting above error after installing one plugin advanced cf db. Please can anyone help how we can solve this. We have downloaded the plugin, uploaded and activated the plugin
Benjamin Fistein
@bfistein

Thanks for the help.

...and I can't change my package options until AFTER I've completed the WpDotNet installation?

Not sure what you mean by that

How to I change my subscription?
1) Through my local WpDotNet installation's dashboard on my server? If so, how can someone change this if they don't have WpDotNet installed?
2) Through a URL on WpDonNet's server? (If so, what's the URL)
3) Something else?

I've answered this before. Changing the subscription can be done in the Stripe dashboard, which you can access via the receipt they sent you after your purchase. If that doesn't work, we can change your subscription manually if you tell us what you want it changed to.

Just to make sure again - WpDotNet is a Nuget package you will reference in your .NET app. In this NuGet, all the dirty work (configuration, packaging etc) has already been done for you - this is what we mean by pre-configured. It is not a hosting service, so you'll still need to host your site somewhere on your own.

If you want WordPress on .NET alternatively, you can always take PeachPie, compile all the sources + plugins yourself, set up a NuGet on your own and work with it that way, but in our subscription, all of this has already been done for you. Hopefully this clears up any confusions.

Tony Olsen
@TonyOls62378228_twitter

Thank you for your time and help.

Stripe gave me a receipt, but when I created an account it didn't recognize my email (that it had sent the receipt to). I suspect something broke in the process, which is also why I never got the new-users email.

Please cancel my subscription.

Benjamin Fistein
@bfistein

Please cancel my subscription.

Done.

Jakub Míšek
@jakubmisek
@murthyvittala thank you for trying wpdotnet! May I ask to post the issue at https://github.com/iolevel/wpdotnet-sdk/issues ? This seems like the plugin was not compiled, we can take a look on that there.
Steve
@hez2010
Some plugins have migration process after upgrade. Seems that the migration process won't being executed if a plugin is built from source and being in previous version of wordpress.
Jakub Míšek
@jakubmisek
@hez2010 is it something triggered by wordpress itself when it's updating itself?
Steve
@hez2010
I can't recall the detail, but maybe yes? I used to install a plugin called wp-smtp, and it added logging function in a version and will create a table in database.
I found that if I build the plugin from source and reference it in WordPress directly, the table won't be created at all.
But if I install the plugin in admin plugin page after I setup WordPress, the table will be created without issue.
Dani Llewellyn
@diddledani
@hez2010 are you loading the plugin with the WordPress plugin mechanisms or are you hard coding a require/include? you should still use the WordPress plugin activation and deactivation for things like activation hooks to be triggered
i.e. you need to compile the plugin and then use WordPress admin to enable it