Forum


Advisor Support

Advisor Support
Forums
Public write access is disabled. Please login

Fatal error at solution stage 31.05.2019 20:37

Wamp Server 3.1.9
Apache 2.4.39
Joomla 3.9.6
PHP 7.2.10
MariaDB 10.3.13

Clicking on .pdf icon at solution stage brings the following:

( ! ) Fatal error: Switch statements may only contain one default clause in C:\wamp\www\new\components\com_advisor\views\advisor\mpdf\mpdf.php on line 1501
Call Stack
# Time Memory Function Location
1 0.0002 390064 {main}( ) ...\index.php:0
2 0.0871 1053392 Joomla\CMS\Application\SiteApplication->execute( ) ...\index.php:49
3 0.0871 1053392 Joomla\CMS\Application\SiteApplication->doExecute( ) ...\CMSApplication.php:196
4 0.5131 4178560 Joomla\CMS\Application\SiteApplication->dispatch( ) ...\SiteApplication.php:233
5 0.5141 4179984 Joomla\CMS\Component\ComponentHelper::renderComponent( ) ...\SiteApplication.php:194
6 0.5159 4189696 Joomla\CMS\Component\ComponentHelper::executeComponent( ) ...\ComponentHelper.php:377
7 0.5160 4206392 require_once( 'C:\wamp\www\new\components\com_advisor\advisor.php' ) ...\ComponentHelper.php:402
8 0.5172 4213840 AdvisorControllerAdvisor->execute( ) ...\advisor.php:46
9 0.5172 4213840 AdvisorControllerAdvisor->epdf( ) ...\BaseController.php:710
10 0.5173 4214416 AdvisorControllerAdvisor->display( ) ...\advisor.php:46
11 0.5173 4214416 AdvisorControllerAdvisor->display( ) ...\controller.php:29
12 0.5174 4214712 AdvisorControllerAdvisor->getView( ) ...\BaseController.php:621
13 0.5174 4214744 AdvisorControllerAdvisor->createView( ) ...\BaseController.php:841
14 0.5583 4215792 require_once( 'C:\wamp\www\new\components\com_advisor\views\advisor\view.epdf.php' ) ...\BaseController.php:590

Re: Fatal error at solution stage 02.06.2019 13:47

Hi,
that log belongs to the pdf library. Seems it contains one line that is no longer valid for that version of PHP. We'll upload in a couple of days a version removing that line, in the meantime, you can open the file and just remove or comment out the line

C:\wamp\www\new\components\com_advisor\views\advisor\mpdf\mpdf.php line 1501

where you should find:

default: $format = false;


It shouldn't be there anymore, so getting rid of it should do the work, please let us know otherwise.

Thanks, regards
Moonsoft Team
www.moonsoft.es

Re: Fatal error at solution stage 02.06.2019 14:26

Hi,

Yes you are correct, after removing the line, it does open a .pdf page but ONLY if I have chosen one of the advisor product I have created.
In case I choose a Joomla article, it does not open it and it does't even conclude the step. It does nothing!
Even if I choose both an advisor product and a Joomla article, it does nothing.
It did it to me a few times before and I had to edit the "solution" that was causing the issue, clear the values, save and then re-edit it adding values again and then it worked.
Now it doesn't work even so.

Thanks

Re: Fatal error at solution stage 03.06.2019 12:47

Hi,

PDF Library has more issues with PHP version. Please download latest version and upgrade Advisor.

Regards,
Moonsoft Team
www.moonsoft.es

Re: Fatal error at solution stage 03.06.2019 15:40

Hi,

I have downloaded the latest version and .pdf works as expected for advisor products but NOT for Joomla articles.
When I choose Joomla articles it doesn't show anything, the step does not conclude.
Can you please verify that Advisor ver.4 in Joomla ver 3.9.6 with PHP 7.2.10 or higher, works OK and it shows Joomla articles when they are selected in "solution"?

Thank you

*Update: Checked with lower PHP versions too...no luck
**Update: I have noticed that I do not see the Hikashop and Virtuemart select list in solution. Do they appear only if the 2 products are installed?

Question: If I uninstall and re-install Advisor (just to be sure), will it delete my tables and records in the db?

Edited by Galanopd - 03.06.2019 16:33

Re: Fatal error at solution stage 04.06.2019 10:23

Hi,

Advisor works ok in our tests with this configuration and many others. Seems to be something related with this articles. If you place a private helpdesk ticket with url to test and backend credentials of your site we'll check it.

About Hikashop and Virtuemart products, they show its select list once installed and with products.

If you uninstall Advisor it will remove the attached database tables as well. So we suggest to share an access instead.

Regards,
Moonsoft Team
www.moonsoft.es
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect
FaLang translation system by Faboba

Our clients' feedback