Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 01 21:09
    jee-mj closed #1097
  • Feb 01 00:51
    ESRM-Support starred peachpiecompiler/peachpie
  • Jan 31 20:38
    jakubmisek commented #1102
  • Jan 31 19:09
    smx-smx edited #1102
  • Jan 31 19:08
    smx-smx edited #1102
  • Jan 31 19:07
    smx-smx edited #1102
  • Jan 31 19:07
    smx-smx opened #1102
  • Jan 30 16:11
    GioCirque edited #1101
  • Jan 30 15:38
    GioCirque commented #1101
  • Jan 30 15:23
    GioCirque commented #1101
  • Jan 30 15:13
    GioCirque opened #1101
  • Jan 29 12:05
    jakubmisek commented #1097
  • Jan 29 02:51
    jee-mj commented #1097
  • Jan 29 02:44
    jee-mj commented #1097
  • Jan 28 16:25
    529124368 starred peachpiecompiler/peachpie
  • Jan 28 14:16
    jakubmisek commented #1083
  • Jan 28 14:15
    jakubmisek commented #1092
  • Jan 28 14:14
    jakubmisek commented #1092
  • Jan 28 13:58
    jakubmisek closed #1085
  • Jan 28 13:58
    jakubmisek commented #1085
Jakub Míšek
@jakubmisek
ok it broke something else :) at least I have a test case
Calvin Baart
@calvinbaart
I also removed a few patches a few days ago because (in theory) they shouldn't be needed anymore. We'll need to see how that works out (only impacts the actual tests though)
Jakub Míšek
@jakubmisek
I'm trying it locally and actually not applying those patches at all .. but it is good to remove them slowly :)
Jakub Míšek
@jakubmisek
@calvinbaart few other fixes for the latest issue commited :)
Calvin Baart
@calvinbaart
It goes a bit further now but skips almost all the tests....I'll have to look into that when I'm home
(Perhaps I should also set up the automated testing for PHPUnit so that we can verify if PHPUnit itself functions correctly)
Jakub Míšek
@jakubmisek
finaly it compiles ...
Array looks like something is doing echo on an array value
Calvin Baart
@calvinbaart
Yea, perhaps one of the patches was still needed (I had some patches for PHPUnit as well)
Calvin Baart
@calvinbaart
@jakubmisek I figured out what is going wrong but I'm still trying to create a test case for it:
  • PHPUnit calls static Test::getMissingRequirements() to figure out if it can run the test
  • getMissingRequirements has a $missing where it stores the missing requirements. This variable is initialized to an empty array at the start of the method.
  • After a specific test $missing is filled suddenly with data (even though its initialized to an empty array at the start).
  • This specific test also has a $missing variable. My theory is that somehow this $missing overrides the local $missing in the getMissingRequirements method. Still trying to figure out a minimal test case for this.
The test that creates the problem is testBasicModelRetrieval
Jakub Míšek
@jakubmisek
@calvinbaart do you have any new test cases? :)
The issue peachpiecompiler/peachpie#252 is mostly fixed, this should allow more tests to pass
Calvin Baart
@calvinbaart
@jakubmisek Still seeing it skip a lot of tests.....haven't figured that one out yet (I think it has to do with a certain combination of code and eval but I haven't cracked that one yet)
Jakub Míšek
@jakubmisek
@calvinbaart meantime we fixed a lot of things with parameters, parameters by ref and default parameters
Prem Murmu
@prem16
'Peachpie.NET.Sdk/0.9.500' specified could not be found
unable to load PeachPied.WordPress
Benjamin Fistein
@bfistein
@prem16 we'll need a little more than that please.
Anthony Turley
@Southerndeep_twitter

Hey guys I'm working on the peachpie / wordpress-sdk implementation. Awesome work btw! I'm trying to deploy my project to a linux vps with ubuntu 18.04. I've been following this tutorial to get the server setup: https://linuxhint.com/install_dot_net_core_ubuntu/

But this tutorial shows how to create a new project on the server. My use case is that I already have a project. Any reading material or suggestions would be great.

Anthony Turley
@Southerndeep_twitter
I didn't go the docker route for setting up mysql. Instead I used xampp, deleted the default "any" user and set a password for the root because it was complaining without. Everything worked like a charm from there.
Just stomped on how to deploy.
Anthony Turley
@Southerndeep_twitter

Lastly, here is the tutorial I was following from Microsoft but they use CentOS and not Ubuntu.

https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-apache?view=aspnetcore-3.0

L!εsAμεr
@liesauer
@jakubmisek no get_Item method now? i have upgraded peachpie from 0.9.44 to 0.9.500.
image.png
image.png
L!εsAμεr
@liesauer
interesting, the top exception occurs because of can not find the resouces dll
L!εsAμεr
@liesauer
{
System.IO.FileNotFoundException: Could not load the specified file.
File name: 'Peachpie.Runtime.resources'
   at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
}
Jakub Míšek
@jakubmisek
@Southerndeep_twitter Have yo u been able to run a sample Hello World app? I can help from there
@liesauer PeachPie is the exception handled or unhandled? Because .NET always tries to load **.resources assembly even it does not exist.
Jakub Míšek
@jakubmisek
@liesauer get_Item() might be inaccessible, we need a test case for this feature (it is a workaround for calling an object indexer [] right?)
L!εsAμεr
@liesauer
a long time ago, i tried Attributes["href"] because Attributes has implementd .net indexer, but in fact i cannot invoke in PHP just like .NET does. before i upgrade to 0.9.500, get_Item works fine.(actually u told me about this method a long time ago)
L!εsAμεr
@liesauer
little test case
downgrade to 0.9.44 will work
Anthony Turley
@Southerndeep_twitter
@jakubmisek yes, I have a hello world app that's running the peachpie wordpress project perfectly on my localhost. But I'd like to deploy it to a remote vps running linux ubuntu 18.04
medvedy
@medvedy
Good evening everyone, I'm trying to build my own wordpress widget, but I have a problem with registering the widget. I get the following error: "InvalidOperationException: Call to a member function register() on a non-object". This is my plugin/widget: https://github.com/medvedy/wpwidgetdemo/blob/master/DemoWidget.cs Can anyone give me a hint what I'm doing wrong or provide a working sample? Thank you :-)
Benjamin Fistein
@bfistein
@medvedy sorry for the late response, Gitter sometimes doesn't notify us of new messages. That's actually a great question - would you maybe post this as an issue to the wpdotnet-sdk repo? That way the answer will be documented as well. Thank you!
Jakub Míšek
@jakubmisek
@liesauer yes, get_Item is a "special" method which should not be callable directly. 0.9.500 behaves like C#, we have to implement .NET indexers before 1.0.0 (peachpiecompiler/peachpie#582)
@medvedy do you have a callstack of the exception? It will point to the PHP code where it happens. It will be something before -> operator which supposes to be an object but it isn't
@Southerndeep_twitter the deployment process would be very the same as with any other asp.net core application. I have found
Calvin Baart
@calvinbaart

@jakubmisek Alright, I have some time to investigate further. I have been logging the sizes of the arrays in the New and NewEmpty methods of PhpArray. It seems that after a certain point (still not sure what) the Singleton Empty PhpArray is not empty anymore:

NewEmpty: 0
NewEmpty: 0
NewEmpty: 0
NewEmpty: 0
NewEmpty: 0
NewEmpty: 0
NewEmpty: 0
NewEmpty: 0
NewEmpty: 0
NewEmpty: 0
NewEmpty: 0
NewEmpty: 0
New Array (2): 1
NewEmpty: 1
NewEmpty: 1
NewEmpty: 1
NewEmpty: 1
NewEmpty: 2
NewEmpty: 2
NewEmpty: 2
NewEmpty: 2
NewEmpty: 2
NewEmpty: 2
NewEmpty: 3
NewEmpty: 3
NewEmpty: 3
NewEmpty: 3
NewEmpty: 3
NewEmpty: 3
NewEmpty: 3
NewEmpty: 3
NewEmpty: 3
NewEmpty: 3
NewEmpty: 3
NewEmpty: 3
NewEmpty: 3
NewEmpty: 3
NewEmpty: 3

Format = Method: Array Count. For the NewEmpty method it will Count the Empty singleton.
I'm still trying to pin-point the exact line of code that is causing this to happen.

New Array (2) will be the public static PhpArray New(params PhpValue[] values) method
Jakub Míšek
@jakubmisek
that's a good bug :) awesome job @calvinbaart . Is it possible it's causing outputting that Array text in the tests ?
Calvin Baart
@calvinbaart
Yes. It seems that the empty array suddenly has three Arrays in it causing PHPUnit to output some stuff (because it doesn't expect it)
Still trying to figure out from what point the empty array is not empty anymore but haven't found anything
Jakub Míšek
@jakubmisek
that would help, if you can find the code causing this ... sometimes we pass the instance of empty array singleton and expecting (hoping) it won't get changed
Calvin Baart
@calvinbaart
Figured it out @jakubmisek : peachpiecompiler/peachpie#591
Jakub Míšek
@jakubmisek
great!
Calvin Baart
@calvinbaart

@jakubmisek Thanks for the fix! All the tests can run again now:

Tests: 3948, Assertions: 7778, Errors: 557, Failures: 159, Warnings: 3, Skipped: 87.

I'll try to go through a few of them to figure it out

medvedy
@medvedy
@jakubmisek @bfistein Thanks for your replies. The exception is thrown in widgets.php, in function "register_widget( $widget )" when executing "$wp_widget_factory->register( $widget );". $wp_widget_factory seems to be null. I'll post an issue to the wpdotnet-sdk repo.
Jakub Míšek
@jakubmisek
@medvedy good, if you'd have any idea why $wp_widget_factory is NULL, it would help. It does not happen on the standard configuration.