Jump to content

Content\Item -> delete() method throws an exception with no message


Go to solution Solved by teraßyte,

Recommended Posts

Posted (edited)

@Daniel F

 

 

  1. Request URL:
    ***************
  2. Request Method:
    GET
  3. Status Code:
    500 Internal Server Error
  4. Remote Address:
    [::1]:80
  5. Referrer Policy:
    strict-origin-when-cross-origin
BadMethodCallException
No message
Stack frames (9)
8
BadMethodCallException 
*******\system\Content\Item.php1452
7
IPS\Content\_Item url
*******\system\Content\Content.php2479
6
IPS\_Content adjustSessions
*******\system\Content\Content.php409
5
IPS\_Content delete
*******\system\Content\Item.php2587
4
IPS\Content\_Item delete
*******\story\story.php242
3
IPS\valastory\modules\front\story\_story deleteStory
*******\system\Dispatcher\Controller.php90
2
IPS\Dispatcher\_Controller execute
*******\story\story.php36
1
IPS\valastory\modules\front\story\_story execute
*******\system\Dispatcher\Dispatcher.php153
0
IPS\_Dispatcher run
*******\index.php14
 
 
is the problem about the url() method ?
I didn't implement this method! 
Edited by ReyDev
  • Solution
Posted
4 hours ago, ReyDev said:
is the problem about the url() method ?
I didn't implement this method! 

Yes. The delete function uses that method in the last line for the IndexNow service:

\IPS\core\IndexNow::addUrlToQueue( $this->url() );
Posted

Well, in theory an item needs to have a valid URL, but there are few cases where it's not going to be the case e.g. Records::url() can also throw an LogicException when the Record which is being deleted belongs to a database which isn't associated with any public page.

That said, I have reported this to our internal bug tracker, so that we can investigate this further.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...