Class 'Tidy' not found @compiling Demo in v2.6.6. #197
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#197
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce the issue
install JCB v2.6.6 or update via Joomla update manager
Expected result
compiling Demo without errors
Actual result
unexpected Error: "Class 'Tidy' not found"
System information (as much as possible)
XAMPP local, Joomla 3.8.3
Additional comments
rollback to JCB Version 2.6.5 --> no problems, compiled DEMO successfully
Please read this https://stackoverflow.com/a/21436539/1429677
Since this is not a error, but a php extension that is needed, it is usually on with most shared hosts. If not please request it from your system administrator. I see you use XXAMP, so just google how to turn it on in that environment.
thanks - problem solved:
enabled extension=php_tidy.dll in php.ini and restarted apache
now 2.6.6 compling works without problem
suggestion: php_tidy enabled check during install of JCB?
for usage with php7 this might be a bit "terse" ( the steps below for debian jessie ). Use sudo where aproriate!
get the key for the dotdeb archives, or upload it manually
add the key for apt-get and clean-up
add dotdeb.org to the sources
update apt-get to learn about our new sources
now the search should now resolve
install tidy
now add them to the php.ini
And finish this of with restarting webserver
Wow that is painful... wonder if this is worth it... @stutteringp0et I am getting the feeling this change is not helping. I mean the xml implementation seems to make JCB slower and more complicated to use. I am collaborating with other, to make the case to go back to the initial string manipulation approach. I mean even you admitted that it was faster, and as we now see it had not complex extension issues like this.
@marcodings Just that you know, JCB can work without the tidy extension, it will just not pretty print the xml, but it will still compile. Here you can see the little tweak we added.
Marco's comment is misleading. All of those same steps are necessary just to install PHP7 in Debian Jessie.
If he's got PHP7 installed already - the process is "apt install php-tidy && service apache2 reload"
"misleading" in my vocabulary implies mal intent which is obviously not the case.
I possibly have been mistaken in my assumption of OS. To correct that more precisely i'm using the "official" joomla docker images.
These may or may not be "official" debian just don't know. I DO know its a recipe to get it working when you have the problem in that context ( if its working for you you probably would not end up here )
np i got it working after all
I can assure you i tried that first to no avail ..
Yes, I too can't see to install this php-tidy thing. I get "Unable to locate package php-tidy" what repository is this package located?
Honestly, i have up a while ago trying to get it to work on my localhost. I'm too busy to keep fiddling with it
Ok, no worries, I just won't use it.
Kevincam3 the info you require about the repo is in my earlier post.
Okay the old "string manipulation" option is back and can be used by going to the
global options -> Global Tab -> Field Builder Type
and selectionString Manipulation
as the defaultField Builder Type
Hope this resolves this issue and keeps everyone happy 👍
So we did not remove the SimpleXMLElement method, but kept both options with a global selection option and internal error handling.