php processor

5 replies · opened Aug 21, 2023

SsimsahAug 21, 2023

Hello,

I'm using Canvas as a template for UI, written by JSP and the server is Tomcat 9.0.69. I tried the JavaBridge for php and it works. The contact jsp has a form with action:

<form class="mb-0" id="template-contactform" name="template-contactform"
action="resources/include/smtpform.php" method="post">

upan submitting the

<button name="submit" type="submit" id="submit-button" tabindex="5" value="Submit"
class="button button-3d m-0">Message
</button>

It hangs. Any suggestions? I'm using Intellij professional as IDE. I can switch to Java, on the other hand there are so many ready php scripts so this would be advantageous. Thank You. Ahmet

SSemicolon WebSTAFFAug 22, 2023

Hello,

Can you please provide us with a Live URL and more details about the error you are receiving in your Browser's Developer Console so that we can check out the exact issue and provide you with more accurate assistance on this. Canvas is provided as a Raw HTML/CSS Template and the PHP Provided for the Form Processor works fine for most frameworks, however, since JSP/Java support is not provided by default with Canvas, this is something that you must integrate yourself with the help of the codes already provided with the Package.

If something does not work with the Default Codes provided, we are always here to assist. However, JSP/Java integration is out of scope of the included support.

Thanks for your Patience.

Let us know if we can help you with anything else or if you find any further issues.

SsimsahAug 22, 2023

Hello thanks for the response,

For starters there is no error, it simply does not work. I do not even know whether php is triggered or not. I simply deployed by tomcat the JavaBridge.war, which works: http://95.70.231.247/JavaBridge/. http://95.70.231.247:8080/home/contact is the page which should trigger the form action:

<form class=”mb-0″ id=”template-contactform” name=”template-contactform”
action=”resources/include/smtpform.php” method=”post”>

The smtp conf is almost as same as in java mail config, except <prop key="mail.smtp.ssl.protocols">TLSv1.2</prop>, where in Java TLSv1.3, but we are not there.

I have also a sudo user to ssh; I goess this is out of your scope. It my be helpful whether php processor is active when send a message. Thank You

Ahmet

SsimsahAug 22, 2023

N.B. My bad, TLSv1.3 is required but php.ini shows :
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3 so its not that :)

SsimsahAug 23, 2023

Hello, please ignore my ticket and consider it as closed. It's not feasible to pursue with "PHP Proc", I decided to continue with pure Java. Thank You, regrds

SSemicolon WebSTAFFAug 25, 2023

Hello,

Thanks for your Patience!

We understand. PHP and JAVA might also conflict with each other. We are working on releasing a standard Form Email service soon which will be platform independent and you can simply use the API to send emails. This will be release soon and we will send you a notification once this is available. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard