What's new

Welcome to xCrud Community - Data Management and extended PHP CRUD

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

set_formular

akaratzas

New member
Joined
Mar 10, 2026
Messages
2
Reaction score
0
Points
1
Location
Greece
the function set_formular in xCrud_1.7.31 not work. Anybody know what need to change in this function to work (xcrude.php)
 

dhuerta29

Member
Joined
Dec 10, 2021
Messages
46
Reaction score
1
Points
8
Location
chile
the function set_formular in xCrud_1.7.31 not work. Anybody know what need to change in this function to work (xcrude.php)
It’s hard to say exactly without seeing your code, but in xCrud 1.7.31 there seem to be several regressions compared to 1.6, and `set_formular()` might be one of them.

Before modifying the core (`xcrud.php`), I’d recommend checking a few things:

1. **Make sure the method is still being called correctly**
Some methods were renamed or changed internally between versions. Double-check that `set_formular()` is still used the same way in 1.7.31.

2. **Check if the method is actually executed**
You can add a quick debug inside the function:

```php
var_dump('set_formular called'); exit;
```

If it doesn’t trigger, the issue is likely in how/when it’s being invoked.

3. **Look for internal changes in rendering flow**
In newer versions, form rendering may have been refactored. It’s possible that `set_formular()` is being overridden later in the lifecycle or ignored depending on the mode (modal, inline, etc.).

4. **Avoid modifying the core directly (if possible)**
Changing `xcrud.php` can create maintenance issues. If you do find a fix, it’s better to isolate it or override behavior externally if the library allows it.

5. **Compare with version 1.6**
If it worked before, a quick diff between both versions of `xcrud.php` around `set_formular()` can reveal what changed or broke.

📌 Most likely this is not something you’re doing wrong, but a breaking change or bug in 1.7.31. If you can share a minimal example, it would be easier to pinpoint the exact cause.
 

akaratzas

New member
Joined
Mar 10, 2026
Messages
2
Reaction score
0
Points
1
Location
Greece
i am no so good to do all this. i use the demo page https://demo.xcrud Community/xcrud_1_7/demos/index.php?page=field_formular_v2&theme=default with orderdetails data and the result is error page
 

Attachments

  • 2026-05-01 203212.png
    2026-05-01 203212.png
    54.4 KB · Views: 2
Top Bottom