3.2.x Extensions Database 3.2 / 3.3 ⇒ Quotes Collection
-
dmzx Online
- Founder

- Posts: 6466
- Joined: 13 Jan 2014, 21:45
Re: Quotes Collection
First post updated.
-
SpIdErPiGgY
- Users

- Posts: 117
- Joined: 04 Feb 2021, 23:54
Re: Quotes Collection
PHP 8 gives an error when adding a quote:
Is there a quick fix? 
Code: Select all
hpBB Debug] PHP Warning: in file [ROOT]/ext/dmzx/quotescollection/controller/main.php on line 271: Trying to access array offset on value of type bool-
martin
- Admin

- Posts: 5105
- Joined: 06 Apr 2014, 16:12
Re: Quotes Collection
Pls post that line of code the error is shown at.
-
SpIdErPiGgY
- Users

- Posts: 117
- Joined: 04 Feb 2021, 23:54
Re: Quotes Collection
This is line 271:
Code: Select all
$last_post_date = $row['post_date'];Code: Select all
// Check, if user added a quote within the last xx minutes
if ($dm_qc_config['delay_set'] > 0)
{
$sql = 'SELECT post_date
FROM ' . $this->dm_qc_table . '
WHERE poster = ' . $this->user->data['user_id'] . '
ORDER BY post_date DESC';
$result = $this->db->sql_query_limit($sql, 1);
$row = $this->db->sql_fetchrow($result);
$last_post_date = $row['post_date'];
$check_time = $last_post_date + (60 * $dm_qc_config['delay_set']);
$this->db->sql_freeresult($result);
if ($check_time > time())
{
// Show error
$minutes = ($dm_qc_config['delay_set'] > 1) ? $this->user->lang['DM_QC_MINUTES'] : $this->user->lang['DM_QC_MINUTE'];
$message = sprintf($this->user->lang['DM_QC_DELAY_ERROR'], $dm_qc_config['delay_set'], $minutes) . '<br /><br /><a href="' . $this->helper->route('dmzx_quotescollection_controller') . '">« ' . $this->user->lang['DM_QC_BACK_TO_MAIN'] . '</a>';
trigger_error($message);
}
}-
martin
- Admin

- Posts: 5105
- Joined: 06 Apr 2014, 16:12
Re: Quotes Collection
Try this but your need to purge boards cache
Code: Select all
@$last_post_date = $row['post_date'];-
SpIdErPiGgY
- Users

- Posts: 117
- Joined: 04 Feb 2021, 23:54
Re: Quotes Collection
The error is gone on my founder account, but still shows with normal user account.martin wrote: 17 Jun 2021, 23:27 Try this but your need to purge boards cacheCode: Select all
@$last_post_date = $row['post_date'];
-
max-ima
- Users

- Posts: 139
- Joined: 25 Mar 2022, 07:11
Re: Quotes Collection
Tested on 3.3.7 and works. Thanks
-
max-ima
- Users

- Posts: 139
- Joined: 25 Mar 2022, 07:11
Re: Quotes Collection
.yml. chek says missing in tables.yml
Find
Code: Select all
parameters:
dmzx.quotescollection.table.dm_qc: %core.table_prefix%dm_qc
dmzx.quotescollection.table.dm_qc_config: %core.table_prefix%dm_qc_configReplace with
Code: Select all
parameters:
dmzx.quotescollection.table.dm_qc: '%core.table_prefix%dm_qc'
dmzx.quotescollection.table.dm_qc_config: '%core.table_prefix%dm_qc_config'-
martin
- Admin

- Posts: 5105
- Joined: 06 Apr 2014, 16:12
Re: Quotes Collection
Yes as this is for 3.2 changes need to be made on all exts that you try to run on 3.3
-
max-ima
- Users

- Posts: 139
- Joined: 25 Mar 2022, 07:11
Re: Quotes Collection
Thanksmartin wrote: 01 Apr 2022, 12:23 Yes as this is for 3.2 changes need to be made on all exts that you try to run on 3.3
-
max-ima
- Users

- Posts: 139
- Joined: 25 Mar 2022, 07:11
Re: Quotes Collection
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.


