0 Class "VDM\Joomla\Componentbuilder\Compiler\Service\Placeholder" not found #970

Closed
opened 2023-01-29 15:37:37 +00:00 by znorm87 · 5 comments

Attempting to complie component. The component gives this error:

0 Class "VDM\Joomla\Componentbuilder\Compiler\Service\Placeholder" not found

System information (as much as possible)

OS Linux l
PHP 8.0.26
MySQLi 5.7.30-cll-lve
Joomla:Joomla! 3.10.11
JCB: 3.1.12

  • Browser: Safari
Attempting to complie component. The component gives this error: 0 Class "VDM\Joomla\Componentbuilder\Compiler\Service\Placeholder" not found ### System information (as much as possible) OS Linux l PHP 8.0.26 MySQLi 5.7.30-cll-lve Joomla:Joomla! 3.10.11 JCB: 3.1.12 - Browser: Safari
Author

I was able to sucessfully compile my component and install when I rolled JCB back to 3.1.5

I was able to sucessfully compile my component and install when I rolled JCB back to 3.1.5
Author

I attempted to update to the newest version doing step upgrades.

When using the compiler I get the following error:

Interface "VDM\Joomla\Componentbuilder\Interfaces\FactoryInterface" not found

Still functions for me when I rolled back to 3.1.5

I attempted to update to the newest version doing step upgrades. When using the compiler I get the following error: Interface "VDM\Joomla\Componentbuilder\Interfaces\FactoryInterface" not found Still functions for me when I rolled back to 3.1.5
Owner

Wondering if this is a caching issue, I have seen on some systems, that they cache PHP in away that makes it hard to upgrade where there is major changes.

So the first thing I would do it make sure that I restart the server, and clear any kind of cache that may exist.

The other reality is that cache normally has a time to live... and so if waiting long enough things could start working without doing anything.

Okay so on my development environment I don't use any cache, and I only an always use FireFox.

We have had issues with Chrome, and Safari at times as they also cache things all the way to server side (crazy I know) but this is real. Specially if your server is local. The browser somehow knows this and starts taking action to cache things that would in a browser APP make sense, but not in a web-app.

So in short use FireFox for all things JCB development, and clear the cache.

Wondering if this is a caching issue, I have seen on some systems, that they cache PHP in away that makes it hard to upgrade where there is major changes. So the first thing I would do it make sure that I restart the server, and clear any kind of cache that may exist. The other reality is that cache normally has a time to live... and so if waiting long enough things could start working without doing anything. Okay so on my development environment I don't use any cache, and I only an always use FireFox. We have had issues with Chrome, and Safari at times as they also cache things all the way to server side (crazy I know) but this is real. Specially if your server is local. The browser somehow knows this and starts taking action to cache things that would in a browser APP make sense, but not in a web-app. So in short use FireFox for all things JCB development, and clear the cache.
Owner

The other thing to check is if all files are being added. So go to the following directory: public_html/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder

You will see many folders and new classes/files in this folder: public_html/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Interfaces you will see the FactoryInterface.php file, is your system having these files?

If any of the files are missing try reinstalling. All files must be there, and be the latest versions. What I do at times to remove old files, before I install JCB package I delete this folder: public_html/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder (only this Componentbuilder folder) don't remove the whole jcb_powers as the Utilities classes are used in the update functions of JCB.

The other thing to check is if all files are being added. So go to the following directory: [public_html/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder](https://git.vdm.dev/joomla/Component-Builder/src/branch/staging/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder) You will see many folders and new classes/files in this folder: [public_html/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Interfaces](https://git.vdm.dev/joomla/Component-Builder/src/branch/staging/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Interfaces) you will see the [FactoryInterface.php](https://git.vdm.dev/joomla/Component-Builder/src/branch/staging/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Interfaces/FactoryInterface.php) file, is your system having these files? If any of the files are missing try reinstalling. All files must be there, and be the latest versions. What I do at times to remove old files, before I install [JCB package](https://git.vdm.dev/joomla/pkg-component-builder/archive/master.zip) I delete this folder: [public_html/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder](https://git.vdm.dev/joomla/Component-Builder/src/branch/staging/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder) (only this [Componentbuilder](https://git.vdm.dev/joomla/Component-Builder/src/branch/staging/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder) folder) don't remove the whole jcb_powers as the Utilities classes are used in the update functions of JCB.
Author

Thank you for your support and the detailed explanation! This helped me get all the way up to date. I was able to do incremental updates from 3.1.5 to 3.1.12

When I tried to increment past 3.1.12 I ran into the same errors as described here: #978

I will close this issue an follow along number 978 for resolution.

Thank you for your support and the detailed explanation! This helped me get all the way up to date. I was able to do incremental updates from 3.1.5 to 3.1.12 When I tried to increment past 3.1.12 I ran into the same errors as described here: https://git.vdm.dev/joomla/Component-Builder/issues/978 I will close this issue an follow along number 978 for resolution.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#970
No description provided.