peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core
https://www.peachpie.io
Apache License 2.0
2.33k stars 202 forks source link

Help with themes and/or plugins #987

Closed hendi330 closed 2 years ago

hendi330 commented 2 years ago

Hello, I am new to peachpie and I have problems with plugins and maybe with themes too. I want to add a custom theme from my already (only on wp ) running website. The theme has a parent and needs the woocommerece and elementor plugin. First I downloaded the plugins via dashboard. -> but errors (php code in header). Then I tried it with compiling. But didnt work either. (well it worked with like 3-4 plugins at a time, then i tried to activate theme -> error then I started with theme and activated some plugins one at a time -> error )

I already discovered that I have to compile them together so that they work (-> first mistake was to compile each theme one at a time) But yeah I tried almost everything. (copy past in wp-content, download from dashboard, download and compile each one at a time, compile everything together).

This is my folder structure: image This is the content of "themes" -folder image This is the content of theme.msbuildproj: image

After I created the msbuildproj files, I ran the dotnet build command. After that dotnet add reference and then dotnet restore. But all the time I either receive code in my header or a blank page. After a lot of searching I came to the conclusion that I am basically to dumb to compile, right? So can you give me some tips? :)

Thanks in advance Hendrik :)

hendi330 commented 2 years ago

okay found out how, if someone is as stupid as I am, here is what i have done: first of all I put both (parent and child) theme in one folder (called "example"). On the same level as the folder "example" I made the msbuildproj file. thats the file: image

-> dotnet build, dotnet add reference and dotnet restore
there were a lot of errors after dotnet build (error php 4044). Each error was excluded like so : image (my first bug fix attempt was to use eval(); but that was like putting pertrol to a fire.) I kinda did the same for plugins.msbuildproj (but only one plugin at a time).

tharlab commented 2 years ago

okay found out how, if someone is as stupid as I am, here is what i have done: first of all I put both (parent and child) theme in one folder (called "example"). On the same level as the folder "example" I made the msbuildproj file. thats the file: image

-> dotnet build, dotnet add reference and dotnet restore there were a lot of errors after dotnet build (error php 4044). Each error was excluded like so : image (my first bug fix attempt was to use eval(); but that was like putting pertrol to a fire.) I kinda did the same for plugins.msbuildproj (but only one plugin at a time).

so the woocommerce & elementor plugin work well? with no issue?