?
avatar jcss
jcss
24 May 2020

Steps to reproduce the issue

Joomla 4.0.0Beta 5/21/20 Save of article containing PHP code fails to open existing/supporting PHP file with error message "No such file or directory". Article can be successfully previewd and executed on front end. Issue does not exist in v3.9.19
Review the attached callstack text, png, php files.

  1. Requires installed/enabled DirectPHP plugin v3.0
  2. Requires installing Replacement.php as published article
  3. Preview the article Note: DirectPHP onContentPrepare is triggered to eval code
  4. Save the article which causes the error. Note: DirectPHP onContentPrepare is triggered to eval code WHY? This does not occur in v3.9.19. This prevents saving any article that has PHP code that fails eval.

Expected result

  1. Successful preview
  2. PHP error on Save preventing saving article that has NO invalid PHP code
    11.3 64bit

Actual result

  1. View the attached files

System information (as much as possible)

Joomla 4.0.0Beta1 build 5/21/20 with DirectPHP v3.0 installed/enabled; Win7Pro w/Chrome wampserver v3.

Additional comments

View the callstack.txt and CallStack.png. Why the redundant calss to plugins? Why is onContentPrepare called? Not called in v3.9.19.CallStaclk.txt

screen shot 2020-05-24 at 21 03 23screen shot 2020-05-24 at 21 03 23screen shot 2020-05-24 at 21 03 28Replacement.txt

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar jcss jcss - open - 24 May 2020
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 May 2020
avatar SharkyKZ
SharkyKZ - comment - 24 May 2020

Why is onContentPrepare called?

It's triggered on save by Content - Smart Search plugin which is now enabled by default.

avatar SharkyKZ
SharkyKZ - comment - 24 May 2020

Closing this as non-core issue. If you need help with DirectPHP plugin, ask its developers or on Joomla! Forum.

avatar SharkyKZ SharkyKZ - change - 24 May 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-05-24 21:34:42
Closed_By SharkyKZ
avatar SharkyKZ SharkyKZ - close - 24 May 2020

Add a Comment

Login with GitHub to post a comment