ERROR: History::set(): Return value must be of type bool, PDOStatement returned #1017

Closed
opened 2023-10-25 19:49:23 +00:00 by jjs · 7 comments

Steps to reproduce the issue

Create any test component
Compile

Expected result

created test component

Actual result

VDM\Joomla\Componentbuilder\Compiler\JoomlaThree\History::set(): Return value must be of type bool, PDOStatement returned

System information (as much as possible)

  • OS Name & Version: Xampp on windows, but saw it on Linux too
  • MySql Version: mysqlnd 8.0.10
  • Apache Version: Apache/2.4.48 (Win64)
  • PHP Version: PHP Version 8.0.10
  • Joomla Version: 3.10.12
  • JCB Version: 3.1.28
  • Browser: Firefox latest

Additional comments

Just figuring out how all works, no added PHP code

### Steps to reproduce the issue Create any test component Compile ### Expected result created test component ### Actual result VDM\Joomla\Componentbuilder\Compiler\JoomlaThree\History::set(): Return value must be of type bool, PDOStatement returned ### System information (as much as possible) - OS Name & Version: Xampp on windows, but saw it on Linux too - MySql Version: mysqlnd 8.0.10 - Apache Version: Apache/2.4.48 (Win64) - PHP Version: PHP Version 8.0.10 - Joomla Version: 3.10.12 - JCB Version: 3.1.28 - Browser: Firefox latest ### Additional comments Just figuring out how all works, no added PHP code
Owner

Okay normally the updateObject should return a bool

This means that the function VDM\Joomla\Componentbuilder\Compiler\JoomlaThree\History::set() should always return a bool...

So I am not sure what could case this issue at all.

Are you able to with a clean install build the demo component?

Okay normally the [`updateObject`](https://git.vdm.dev/joomla/Component-Builder/src/branch/staging/libraries/jcb_powers/VDM.Joomla/src/Componentbuilder/Compiler/JoomlaThree/History.php#L228) should return a [bool](https://github.com/joomla/joomla-cms/blob/3.10-dev/libraries/joomla/database/driver.php#L2232) This means that the function `VDM\Joomla\Componentbuilder\Compiler\JoomlaThree\History::set()` should always return a bool... So I am not sure what could case this issue at all. Are you able to with a clean install build the demo component?
Author

Thanks for the reply.
I uninstalled JCB and reinstalled it.
Compiling the Demo went OK
I will try to create a a test component and compile tomorrow and report back.

Thanks for the reply. I uninstalled JCB and reinstalled it. Compiling the Demo went OK I will try to create a a test component and compile tomorrow and report back.
Author

Hi,

so now with this setup I created a Test component, A simple Admin view and a simple Site view.
Then linked them in the component and saved.
There is no additional code added, no additional things selected etcetera.
Then Compiled the Test component and the exact same error pops up.

Hi, so now with this setup I created a Test component, A simple Admin view and a simple Site view. Then linked them in the component and saved. There is no additional code added, no additional things selected etcetera. Then Compiled the Test component and the exact same error pops up.
Owner

You will need to give me some more information, since if I can't duplicate the issue, I can't debug it.

At this point the conclusion is that your doing something wrong... which is easy to do with JCB.

So make sure to watch all the tutorial on how to use JCB, and if you have in fact done that, give me more details so I can replicate/duplicate the issue.

You will need to give me some more information, since if I can't duplicate the issue, I can't debug it. At this point the conclusion is that your doing something wrong... which is easy to do with JCB. So make sure to watch all the tutorial on how to use JCB, and if you have in fact done that, give me more details so I can replicate/duplicate the issue.
Author

That is a possibility, the options are tremendous.
So I will check some videos and also try it on Linux Lampp as now I tried on Windows Xampp, should not matter but anyway.

That is a possibility, the options are tremendous. So I will check some videos and also try it on Linux Lampp as now I tried on Windows Xampp, should not matter but anyway.
jjs closed this issue 2023-11-01 09:19:50 +00:00
Owner

I am only working on Linux (Ubuntu) and this is my suggestion for local development: https://youtu.be/owpxKie0I7s?si=iS5bWsSv3pXtcf-S

This allows you to run a native ubuntu-docker setup in Virtual-Box.

If your on Ubuntu... you can use octojoom directly as it will take care of all your containers.

This is the environment I am working in.

I realize many who use JCB are on Windows desktop, or Mac... but I just have not worked in Windows for many years now, and can't really help.

I am only working on Linux (Ubuntu) and this is my suggestion for local development: https://youtu.be/owpxKie0I7s?si=iS5bWsSv3pXtcf-S This allows you to run a native ubuntu-docker setup in Virtual-Box. If your on Ubuntu... you can use [octojoom](https://git.vdm.dev/octoleo/octojoom) directly as it will take care of all your containers. This is the environment I am working in. I realize many who use JCB are on Windows desktop, or Mac... but I just have not worked in Windows for many years now, and can't really help.
Author

I can highly understand your choice. Many servers on the web run on Linux.
And with a PHP project I was working on, worked not ok on the Linux server (especially sessions) while it was working on windows Xampp.
So then I used Ubuntu (multi-boot PC) to fix the issues.
(not that I'm a highly skilled programmer on PHP, I just look for solutions and try and error)

I will check and try out your suggestions.
Thanks !

I can highly understand your choice. Many servers on the web run on Linux. And with a PHP project I was working on, worked not ok on the Linux server (especially sessions) while it was working on windows Xampp. So then I used Ubuntu (multi-boot PC) to fix the issues. (not that I'm a highly skilled programmer on PHP, I just look for solutions and try and error) I will check and try out your suggestions. Thanks !
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#1017
No description provided.