joomlaboat / custom-tables

The Custom Tables extension allows you to create, manage, and display custom data on your Joomla site. It is helpful if you need to display data that is not part of the standard Joomla content structure. For example, you could use this extension to create a custom table for product information, customer data, or any other type of data that you need to display on your site. The Custom Tables is the CRUD solution for Joomla 3.x and 4.x - CREATE, READ, UPDATE and DELETE. You can add tables, fields, and layouts to create catalogs, forms, or details pages. It has 40 Field Types: Integer (numbers), Decimal, Text String, Time, Email, Color, Image, File, User, Language, etc.
https://joomlaboat.com/custom-tables
GNU General Public License v2.0
35 stars 11 forks source link

Problem after update #91

Closed mennoswaak closed 1 month ago

mennoswaak commented 1 month ago

This afternoon I updated Custom Tables, Pro and the Modules to the newest version. At the frontend I now get a Compile Error. It looks like it comes from Gantry and a Twig extension. It comes with much more messages but the site is not available.

So I disabled the Custom Tables Plugin and the site is available again. Strangely enough: my Custom Tables, detail pages and edit forms are working as they should.

What is happening?

regards Menno

joomlaboat commented 1 month ago

Hello Menno,

Disable Twig Loading in Global Configuration / Custom Tables

mennoswaak commented 1 month ago

Hello Ivan

that was already my setting

joomlaboat commented 1 month ago

Can you please make a screen-shot with the error message?

mennoswaak commented 1 month ago

So I had to disable the plugin and then when I visit the site at the frontend these 2 messages at the left (schermafdruk-1.jpg) Schermafdruk-1 and a bigger one at the right (schermafdruk-2.jpg) Schermafdruk-2 And beneath that there is more information on Environment & details

joomlaboat commented 1 month ago

I think I know where is the problem. Please uninstall Custom Tables Plugin and download/install again.

Old plugin used Joomla 3 file structure and the new one Joomla 4 MVC, installing new plugin over the old left an old file there, and the old file didn't read Global Configuration params.

mennoswaak commented 1 month ago

After reinstalling, the problem is the same. The strange thing that everything works fine when the plugin is disabled. All tables and forms included. How can that be?

joomlaboat commented 1 month ago

Can you show what files are in /plugin/content/customtables folder?

mennoswaak commented 1 month ago

customtables.xml index.html inputbox: tablejoin.php tablejoinlist.php js: chart.js jquery.uploadfile.js raphael.js raphael.min.js protagprocessor customphp.php helpers.php index.html phptags.php servertags.php services provider.php src

joomlaboat commented 1 month ago

file: src/Extension/customtables.php

please try to change the line 69 to

$loadTwig = false;//$params->get('loadTwig') ?? true;

I suspect that it cannot read the configuration value.

I tried to repeat the same situation on my localhost and nothing. No errors.

mennoswaak commented 1 month ago

on line 69 I see only a }
Is that what you want me to replace?

joomlaboat commented 1 month ago

It looks like the Custom Tables Plugin is not updated on your website.

image

mennoswaak commented 1 month ago

The date of the file showed it was updated. So I did another update and now it is working well thanks

joomlaboat commented 1 month ago

Glad to hear that.