Details
Details
I am using PHP 7.4 with the current version of Phorge
When I go to any repository on Diffusion, I get this error
Call to phutil_nonempty_string() expected null or a string, got: PhutilURI.
I am using merurial repositories
Did I miss something?
Event Timeline
Comment Actions
@avivey Is there somewhere I can see or enable the stacktrace?
I am not seeing it on the Diffusion page
Comment Actions
Try to read in /var/log/httpd/error.log, or /var/log/apache2/error.log (or error log of PHP FPM if you have that)
Comment Actions
[Fri Apr 28 09:52:06.549755 2023] [php7:notice] [pid 3282] [client X.X.X.X:52410] [2023-04-28 15:22:06] EXCEPTION: (InvalidArgumentException) Call to phutil_nonempty_string() expected null or a string, got: PhutilURI. at [<arcanist>/src/utils/utils.php:2124] [Fri Apr 28 09:52:06.550064 2023] [php7:notice] [pid 3282] [client X.X.X.X:52410] arcanist(head=stable, ref.master=a1ee2ab93158, ref.stable=82d1abd4edd1), phorge(head=stable, ref.master=58fbf64a2786, ref.stable=f3b37413167e) [Fri Apr 28 09:52:06.550072 2023] [php7:notice] [pid 3282] [client X.X.X.X:52410] #0 <#2> phutil_nonempty_string(PhutilURI) called at [<phorge>/src/infrastructure/javelin/markup.php:81] [Fri Apr 28 09:52:06.550075 2023] [php7:notice] [pid 3282] [client X.X.X.X:52410] #1 <#2> phabricator_form(PhabricatorUser, array, array) called at [<phorge>/src/applications/diffusion/controller/DiffusionController.php:486] [Fri Apr 28 09:52:06.550078 2023] [php7:notice] [pid 3282] [client X.X.X.X:52410] #2 <#2> DiffusionController::renderSearchForm() called at [<phorge>/src/applications/diffusion/controller/DiffusionRepositoryController.php:273] [Fri Apr 28 09:52:06.550082 2023] [php7:notice] [pid 3282] [client X.X.X.X:52410] #3 <#2> DiffusionRepositoryController::buildHeaderView(PhabricatorRepository) called at [<phorge>/src/applications/diffusion/controller/DiffusionRepositoryController.php:28] [Fri Apr 28 09:52:06.550085 2023] [php7:notice] [pid 3282] [client X.X.X.X:52410] #4 <#2> DiffusionRepositoryController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284] [Fri Apr 28 09:52:06.550088 2023] [php7:notice] [pid 3282] [client X.X.X.X:52410] #5 phlog(InvalidArgumentException) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41] [Fri Apr 28 09:52:06.550090 2023] [php7:notice] [pid 3282] [client X.X.X.X:52410] #6 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, InvalidArgumentException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751] [Fri Apr 28 09:52:06.550093 2023] [php7:notice] [pid 3282] [client X.X.X.X:52410] #7 AphrontApplicationConfiguration::handleThrowable(InvalidArgumentException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296] [Fri Apr 28 09:52:06.550096 2023] [php7:notice] [pid 3282] [client X.X.X.X:52410] #8 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:204] [Fri Apr 28 09:52:06.550099 2023] [php7:notice] [pid 3282] [client X.X.X.X:52410] #9 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]
Please note that I have moved from phabricator to phorge few months back. It was working smoothly but after recent upgrade, I am seeing this
Comment Actions
Thanks - looks like this might have been introduced in D25131.
I'll take a look about a fix.
Log In to Comment
Answers
Answers
Event Timeline
New Answer
New Answer
Answer
Answer
This question has been marked as closed,
but you can still leave a new answer.