by urdhvatech

Need a landing page for your next campaign? A way for your customers to create support cases? Do your sales reps need a way to enter leads? With WebToModule you can create custom webforms for these any many other uses. Supports all modules, including custom modules.

Free Trial

By clicking you consent to share your profile with the developer

#3067 - System crash after installing module

Closed Bug? created by Highrank Verified Purchase 5 years ago

Installing this module cased the system to crash, error 500. PHP Fatal error: Call to undefined method Basic::Basic() in /home/sugar/www/modules/UT_WebToModule/UT_WebToModule_sugar.php on line 50

  1. urdhvatech member avatar

    urdhvatech Provider Affiliate

    5 years ago

    Hello Highrank,

    Sorry for inconvenience. It should not give such error. Which version of PHP are you using ?

    It would be good if you can come up on Skype, so we can check it better. Our Skype id : urdhvatech

    Thanks & Regards, Team Urdhva Tech.

    • Deeworx member avatar

      Highrank Verified Purchase

      5 years ago

      Thank you for your reply. We checked our PHP version and it is an older version of PHP, version 5.4.45. We run SugarCRM 7.8.1.0 and are in the process of moving to another server. Soon it will run on a platform with PHP version 5.6

      As I am a PHP developer myself I took a look at the error message and noticed the problem was caused by a call to the constructor of the parent class. The strange thing however is that there is a discrepancy between the developer documentation of SugarCRM 7.8.x and the official PHP documentation on how to call the constructor of the parent class.

      The SugarCRM developer documentation recommends using "parent::Basic()" as a way to call the constructor. see: http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.8/Data_Framework/Models/#Implementation

      But PHP recommends to use "parent::__construct()" to call the constructor. see: http://php.net/manual/en/language.oop5.decon.php

      Long story short: I unzipped the installer, changed the parent::Basic() call to parent::__construct() and made a new zip. I installed this on our SugarCRM instance and it seems to work.

      I hope my input is of any help to you. Could you please review these changes and if you agree with them put these in your module, because we would rather use a working WebToModule installer from you directly so you can officially support it. We will test the module in the coming weeks. In case we encounter other problems we will let you know.

      Regards, Frits Germs

      Highrank

  2. urdhvatech member avatar

    urdhvatech Provider Affiliate

    5 years ago

    Hello Highrank,

    We have checked on SugarCRM7.8.2.0 and gets the fatal error for constructor . We have updated the code and uploaded the latest version for WebToModule[3.0].

    Thanks & Regards, Team Urdhva Tech.

  3. Deeworx member avatar

    Highrank Verified Purchase

    5 years ago

    That's great! Thank you for your help.

    Regards, Frits

    Highrank

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
  • "WebToModule works great and is a great value! We are using to generate multiple landing pages. We had a problem during installation, because we enter..." - alhauf

    Read More Reviews