1,464,319 questions
-3
votes
0
answers
21
views
PHP CRUD page throws syntax error after table output [duplicate]
Parse error: syntax error, unexpected token "}" in C:\xampp\htdocs\project\index.php on line 27
Here's the code:
<?php
include 'config.php';
if (isset($_POST['add'])) {
$name = $...
1
vote
0
answers
62
views
PowerGrid + PostgreSQL: “column must appear in the GROUP BY clause” when aggregating by month
I'm using Laravel Livewire PowerGrid to display aggregated data by month from my events table (PostgreSQL).
I want to calculate monthly sums:
public function datasource(): Builder
{
...
3
votes
0
answers
27
views
Modify Google Calendar with non-restricted scopes
I have a PHP site using Google API for user login. Some users have creation and modification roles on a public Google Calendar.
I would like to modify that calendar when one of these users are logged ...
Best practices
0
votes
3
replies
22
views
How does the_excerpt() decide the length of text in a custom WordPress theme?
I am building a custom WordPress theme and using the_excerpt() inside index.php.
I want to understand:
How WordPress decides the excerpt length by default
Whether it is affected by theme or core ...
-3
votes
0
answers
36
views
How to Upgrade PHP 7.4 to 8.2 in XAMPP without data loss? [duplicate]
I am using XAMPP on Windows with PHP 7.4.13, and I want to upgrade PHP to PHP 8.2.
My main concern is upgrading PHP without losing any existing data, including:
htdocs project files
MySQL / MariaDB ...
0
votes
1
answer
96
views
Laravel database session's table user_id is always null
I'm using Laravel version 12 and now I'm facing a problem when I try to login with correct username and password (they had been seeded to database) it redirected me to login page and not dashboard ...
Best practices
1
vote
1
replies
42
views
PIM Core upgrade version 6.9 to 10x
I am planning to upgrade Pimcore from version 6.9 to 10.x. I’ve gone through the official documentation and followed all the steps mentioned there. However, I’m seeing many additional changes beyond ...
1
vote
1
answer
148
views
Is it safe to remove elements from a Doctrine collection in a foreach loop?
With Doctrine ORM I see recommendations to call toArray() on a collection before iterating over it when removing elements. Is this really necessary and why?
I have a dossier entity with a One-to-Many ...
0
votes
0
answers
65
views
How to properly handle parent and child theme CSS in WordPress without messy overrides? [closed]
I’m working on a WordPress child theme and I know the basic rule of loading the parent stylesheet first and then the child stylesheet using wp_enqueue_style.
The problem I run into in real projects is ...
1
vote
2
answers
90
views
Missing required parameter for [Route: password.reset] [URI: password/reset/{token}] [Missing parameter: token]
I updated Laravel from 11 to 12 and I'm having a problem with login.blade; I can no longer log in.
Here is my code (login.blade.php):
</div>
...
Best practices
0
votes
7
replies
87
views
PHP form data not saving in MySQL database using mysqli
I am working on a PHP project with MySQL. I am trying to save form data into the database, but the data is not inserting and no error is showing.
What I expected:
Data should be saved in the users ...
0
votes
2
answers
73
views
Laravel teardown API calls on reversing migration
I have a model, let's say Item, that makes a call to an external API on creation to synchronize with that service:
class Item extends Model
{
protected static function booted()
{
...
-2
votes
0
answers
35
views
Why is my WordPress plugin function not triggered using add_action? [closed]
I am learning WordPress plugin development and trying to hook a custom function using add_action.
The function does not execute even though the hook name seems correct.
I have tried clearing the cache ...
-1
votes
3
answers
132
views
Can i display blog titles from my blog on another external website using iframe, HTML and CSS [closed]
I am trying to display my blog posts from my website https://www.myblog.com on another website using iframe. Is there a way in which i can retrieve the blog titles of the posts alone from https://www....
0
votes
2
answers
118
views
I can't get this simple pregmatch to work [closed]
I have been trying to figure out how to learn pregmatch and no matter what I try, it never works. I have tried my best until I get a migraine, searched all over the internet, and I hate to ask here ...