Unable to create simple .php file for paper_lantern
Hello,
I am trying to create a simple page for cpanel paper_lantern that will show a few PHP variables for the customer in their cpanel area.
I read the
3. Now go to customer's cpanel, and then replace "index.html" with test.php. I see an error 500. Any ideas what I am doing incorrectly? Thanks!
header( "Page Heading, app_key" ); // Add the header.
?>
footer(); // Add the footer.
$cpanel->end(); // Disconnect from cPanel - only do this once.
?>3. Now go to customer's cpanel, and then replace "index.html" with test.php. I see an error 500. Any ideas what I am doing incorrectly? Thanks!
-
Hi, I can confirm this defect on a development build of version 68. Which version are you testing on? The following additional information is logged to the cPanel error_log: PHP Fatal error: Uncaught exception 'RuntimeException' with message 'There was a problem fetching the env variablecontaining the path to the socket' in /usr/local/cpanel/php/cpanel.php:146 Stack trace: #0 /tmp/cpanel_phpengine.1504698776.32651cZh9hkOLY3(3): CPANEL->__construct() #1 {main} thrown in /usr/local/cpanel/php/cpanel.php on line 146
Update: I filed this as case CPANEL-15673.0 -
I tested this (and had the same problem) on cPanel & WHM 64.0 (build 38) (I see the same error in the cpanel error log.) The problem seems to occur even if you just rename the "integration_examples/example.live.php" file to anything else. As soon as the file is renamed (no edit of contents), it gives the error. 0 -
Hello, The documentation is incorrect. Files must be named .live.php in order to work. We will update the documentation accordingly. 0
Please sign in to leave a comment.
Comments
3 comments