ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Forms written in PHP custom code using chronoforms5 in Joomla 3.9.1 not display on website anymore.

Vassal 03 Jan, 2019
Hello,

To begin, I am a beginner in the "chronoengine" world so sorry if my problem is stupid. I apologize in advance.
I became the new administrator of the website of my association created by someone else, and my job became with an issue:
All forms which have been created using PHP custom code do not work anymore, the displayed webpage is empty.
From the admin page, the "view form" option is also empty. I don't see errors when i launch debug on my browser.
Demo forms are working, but if I copy one of them and rename, it does not work anymore.
Another point, when I replace my custom code by a really simple template in PHP, the test form is also empty.
I am still trying to make research on internet to find a solution, but if someone is having an idea, or some advises or tests, it could be very helpful!

Thanks a lot in advance.
Regards
Nico
GreyHead 04 Jan, 2019
Hi Nico,

Please check that you have the latest release of CFv5 installed.

Also please try setting Site Error Reporting temporarily to Maximum and see if you get any PHP Error messages.

Bob
Vassal 04 Jan, 2019
Hi GreyHead,
First of all, thanks for your guidance 🙂
I have installed the latest release but no effects on the display of the forms in my website, but now when i wish to modify a form, i get a loading page continuallyCapture_decran_2019-01-04_a_21.46.16.png

I have also enabled setting Site Error Reporting temporarily to Maximum and now, in place of the list of my form, I could see error "Deprecated: Function create_function() is deprecated in /home/fouleessz/www/libraries/cegcore/helpers/html.php on line 59"
Capture_decran_2019-01-04_a_22.02.50.png

Line 59 of that html.php is:
returnimplode('; ',array_map(create_function('$k,$v','return $k.":".$v;'),array_keys($styles),array_values($styles)));
Capture_decran_2019-01-04_a_22.50.07.png

I'm trying to find some ideas on the net.

Thanks for your help.
Regards,
Nico
healyhatman 04 Jan, 2019
replace
create_function('$k,$v', 'return $k.":".$v;')
with
function($k, $v) { return $k . ":" . $v; }
DO NOT copy paste anything from the forums, type it manually.

If that doesn't fix anything, you might have to drop your PHP version. CFv5 is getting on a bit now, you should be transitioning to v6.
Vassal 05 Jan, 2019
Thanks Healyhatman,

I have replaced as mentioned but forms list in joomla admin page is displaying correctly now, but forms still not displayed on the website.
Concerning the loading page, I fixed the issue by following advise found in another post (Disable the 'Pinned toolbar' setting under: Extensions > Templates > Isis > Advanced > Pinned Toolbar).
Still trying to find why all forms do not display in my website. otherwise, i will upgrade to CFV6.
GreyHead 06 Jan, 2019
1 Likes
Hi Nico,

Just to note - a Deprecated message is just a warning that the code won't work in future versions of PHP. It should still work with the PHP version you are using. I'm guessing that there is another error somewhere here.

Bob
Vassal 06 Jan, 2019
Hi healyhatman & GreyHead,

I installed CFV6 and moved all my forms and I can see them in my website now!
I could compare with CFV5 and notice that form functions on load and on submit were empty...
Anyway, I learnt a lot with your advises and I have still a lot of works to do because now I have to understand the goal of each form and update configs to make them run again.
But now, thanks to you , I could advance :-)
Thanks a lot!

Nico
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com