## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
• Create your own community
##### Activity
• 12:06
• 09:44
raminquliyev starred peachpiecompiler/peachpie
• 07:08
menturion closed #964
• Jun 19 01:15
infinitydeveloper1 starred peachpiecompiler/peachpie
• Jun 18 15:20
menturion commented #964
• Jun 17 14:43
menturion commented #964
• Jun 17 11:35
JosefPihrt opened #966
• Jun 15 19:02
jakubmisek commented #965
• Jun 15 14:50
taoneill starred peachpiecompiler/peachpie
• Jun 15 14:27
brnanders commented #965
• Jun 15 12:27

jakubmisek on v1.0.6

• Jun 15 11:46
jakubmisek closed #879
• Jun 15 11:46
jakubmisek commented #879
• Jun 15 11:45
jakubmisek edited #935
• Jun 15 11:44
jakubmisek milestoned #935
• Jun 14 20:01
jakubmisek commented #965
• Jun 14 20:01
jakubmisek commented #965
• Jun 14 19:59
jakubmisek commented #965
• Jun 14 19:58
jakubmisek commented #965
• Jun 14 19:56
jakubmisek edited #965
Jakub Míšek
@jakubmisek
@ghostiq some errors are sadly a limitation of the compiler, currently there are a few cases when the code cannot be compiled.
@ghostiq the Yoast displayed text is an actual error on our side (probably) that we should fix. We have to find out how it got there.
May I ask to report the issue with Yoast on https://github.com/iolevel/wpdotnet-sdk/issues/new/choose ? thank you :)
Jakub Míšek
@jakubmisek
@StefanduPlessis are you accessing the $_SESSION directly or do you somehow create a reference to this variable ($reference = &$_SESSION;) ? Noob Software @siggi90 Is it possible to target .netstandard2.0 with the latest PeachPie? Jakub Míšek @jakubmisek @siggi90 yes, peachpie is compatible with netstandard2.0+, netcoreapp2.0+, or net461 and newer Stefan du Plessis @StefanduPlessis @jakubmisek I'm accessing it directly Jakub Míšek @jakubmisek @StefanduPlessis so the $_SESSION variable gets empty after an include ? or within another request?
Troy Parkinson
@trousyt
Trying to compile WPGraphQL but am getting an Unable to cast object of type 'Pchp.CodeAnalysis.Semantics.BoundArrayEx' to type 'Pchp.CodeAnalysis.Semantics.BoundReferenceExpression'. Any ideas? Is this a limitation of the compiler in its current state?
BTW, this is using the latest SDK ... 5.7.1-preview7
Jakub Míšek
@jakubmisek
@trousyt sounds like a bug, may I ask for a full call stack? so we can fix it within the next update
Troy Parkinson
@trousyt
@jakubmisek Here's the full stack trace: https://gist.github.com/trousyt/2bfaf02cea2e1cc459a2d7eb423a9b2a
Jakub Míšek
@jakubmisek
thank you @trousyt will be fixed
Robert Sundström
@robertsundstrom
How do I bind Wordpress to the endpoint "/wordpress"?
Robert Sundström
@robertsundstrom

How do I bind Wordpress to the endpoint "/wordpress"?

I opted to run for the option to host the frontend separately:. Here is the code: https://github.com/robertsundstrom/headless-wordpress-blazor

I have added support for Tye.

Noob Software
@siggi90
I have a Xamarin.Forms project with a UWP project which has PeachPie.Runtime and PeachPie.Library and when building with .NET native toolchain i get the following error:
Error RHBIND : error RHB0011: Internal error: 'pchTypeNameEnd[0] == L'>'' at 'f:\dd\ndp\rh\src\tools\rhbind\makepdb.cpp:968' noobcloud.UWP
Error ILT0005: '...\packages\runtime.win10-x86.microsoft.net.native.compiler\2.2.10-rel-29722-00\tools\x86\ilc\Tools\rhbind.exe @"...\obj\x86\Release\ilc\intermediate\rhbindargs.noobcloud.UWP.rsp"' returned exit code 11, I have another project (which builds fine) with same nugets (except it does not contain PeachPie) so i was wondering if this could be a problem with PeachPie?
Jakub Míšek
@jakubmisek
@robertsundstrom that razor demo is awesome!
@siggi90 I'm not familiar with RHB0011 although I assume the toolchain does not like the class names generated by the PeachPie compiler? (they might end with ">" character)
Noob Software
@siggi90
I was able to bypass this error by altering my default.rd.xml file, (by removing assembly reference to application and adding assemblies by hand) but I have not verified that everything still works
Noob Software
@siggi90
@jakubmisek I was able to fix this error by moving all of the php files out of directories and into the root of the project, but now I'm getting another error when building with .net native toolchain: System.PlatformNotSupportedException: 'Dynamic code generation is not supported on this platform.'
Noob Software
@siggi90
the only reason for this i can find is possibly because I'm calling call_user_func_array, does it use dynamic code generation?
Noob Software
@siggi90
When submitting my UWP app to the microsoft store i get the following error: File libMonoPosixHelper.dll has failed the DBCheck check. And some error messages like this: API EnumProcessModules in psapi.dll is not supported for this application type. libMonoPosixHelper.dll calls this API.
API __dllonexit in msvcrt.dll is not supported for this application type. libMonoPosixHelper.dll calls this API. I was wondering, is Mono.Posix necessary, what does it actually do? Is there some way to exclude it?
Jakub Míšek
@jakubmisek
@siggi90 is "Dynamic code generation" related to C#'s "dynamic" functionality or System.Linq.Expression methods? This would be used across the entire PHP code.
@siggi90 MonoPosix is referenced by the main library package (Peachpie.Library). We can move it to another package, so you can exclude it from your application. Would it help?
@siggi90 ad "Dynamic code generation": dotnet/corert#5011
Noob Software
@siggi90
@jakubmisek It seems that call_user_func_array is atleast not allowed in UWP in release mode building with .net native toolchain, but all other php code runs fine. If you can move MonoPosix and it would not break PeachPie.Library's functionality would be great, because then i can release to the UWP store and presumably also target Xamarin.Mac which would be wonderful
btw i was able to change all call_user_func_array to normal function calls using a variable for the function name for example $app->$function(\$parameters) so it worked out fine
Jakub Míšek
@jakubmisek
@siggi90 that's interesting because call_user_func_array internally is the same as indirect function invocation. If you'd have a full stack trace of the exception, I can help more.
Noob Software
@siggi90
@jakubmisek I've already changed the code so i don't need to use call_user_func_array at this time, but i can provide the stacktrace for it if you want
Noob Software
@siggi90
Do you thnk you will you move Mono.Posix to another package by next release?
Jakub Míšek
@jakubmisek

@siggi90

you can always grab the nightly build (https://docs.peachpie.io/scenarios/intermediate/nightly-builds/)

also would be good to have an issue for the Mono problem at https://github.com/peachpiecompiler/peachpie/issues

Christian Rios
@carios23
Has anybody gotten blazor web assembly to run with a wordpress landing site with PeachPie?
Christian Rios
@carios23
Once I do app.UseWordpress(); I can not even hit wep api controllers or anything
Jakub Míšek
@jakubmisek
@carios23 yes, UseWordPress() works as a WordPress request handler which should be the last one in the request pipeline. It handles any request that makes it through the preceding handlers
Christian Rios
@carios23
@jakubmisek if I put it after app.UseRouting(); then, I am not able to hit the wordpress pages, only wp-login.php, but it does not log in and tells me there is nothing at that address
Christian Rios
@carios23
@jakubmisek if I put it at the end of the request pipeline, there is no way I can hit the wordpress site then
probably need to do something along these lines to get both sites to work but I cant quite figure it out
Christian Rios
@carios23
this might be the issue. that blazor.webassembly.js is never routing the php compiled content
Jakub Míšek
@jakubmisek
oh, I have never tried combining webassembly with wordpress yet .. do you want to run Wordpress as a webassembly on the browser side?
Christian Rios
@carios23
This message was deleted
Christian Rios
@carios23
Not a Blazor Webassembly standalone but Blazor Webassembly ASP.NET Core Hosted. Instead of having two separate sites, we wanted to use PeachPie to have just one where WordPress could serve as a CMS and redirect to our app. I sorta got it to work on MVC but had no luck with Blazor which is our requirement.
Lance Matsushige
@FuriousFop_gitlab
Has anyone here worked with MDPF before? Its used by a variety of plugins, and I can get it to output a pdf but when opening the pdf it just shows squares instead of characters. Not sure if its an encoding issue or what.
Jakub Míšek
@jakubmisek
@carios23 maybe if you use MapWhen for wp-content, wp-includes, wp-admin .. and for the pages you want to handle .. the thing is, WordPress handles all the requests otherwise, as well as the blazor I guess
@FuriousFop_gitlab "mPDF" ? I suppose it is an encoding issue. Would you have a github repo with the peachpie project where we can try it?
Levi (Snail) Currit
@Greely_twitter
@jakubmisek, thanks for your help. I really do appreciate it.
Lance Matsushige
@FuriousFop_gitlab
@jakubmisek no I don't have a github repo with it, I switched over to use a JS library as it was much faster to go that route and I only needed front end pdf generation. The plugin that makes use of mPDF is the Ninja Forms PDF Form Submission plugin if anyone is curious about it. https://ninjaforms.com/extensions/pdf-form-submission/