0
I have just recently bought the new version of music collection to make it work with php8. Unfortunatelly I get only errors. I have just bought it because of this. My errors:
Non-static method MusColGraphics::renderThumb() cannot be called statically
Appears when I try to show recent albums with the attached config (Capture.JPG) - tried other configurations as well. Are there any hints if I am doing wrong or the promise in the download is wrong?
Running Joomla 3.10 on PHP 8.0.28
Thanks for the help!
Non-static method MusColGraphics::renderThumb() cannot be called statically
Appears when I try to show recent albums with the attached config (Capture.JPG) - tried other configurations as well. Are there any hints if I am doing wrong or the promise in the download is wrong?
Running Joomla 3.10 on PHP 8.0.28
Thanks for the help!
Responses (6)
-
Accepted Answer
-
Accepted Answer
0Hi
thanks a lot. This is very good to hear and has worked. But now I am getting the attached error when I want to open an album.
For me the decision on using music collection again (I just migrated everything to articles using the following script) depends if there will be a joomla 4 compatible version. Is this the case?
kind regards
André -
Accepted Answer
0Here the migration script:
'INSERT INTO `sm_content`(
`title`,
`alias`,
`fulltext`,
`created`,
`hits`,
`state`,
`created_by`,
`catid`,
`images`,
`access`,
`language`,
`publish_up`,
`metakey`
)
SELECT
CONCAT(
sm_muscol_artists.artist_name,
" - ",
sm_muscol_albums.name
) AS title,
LEFT(
sm_muscol_albums.image,
LENGTH(sm_muscol_albums.image) -4
) AS alias,
CONCAT(sm_muscol_albums.review,
"
Albuminfo
Punkte
",sm_muscol_albums.points,"/5
Label
",sm_muscol_albums.label,"
Veröffentlichung
",sm_muscol_albums.month,"/",sm_muscol_albums.year,"
Format
",
sm_muscol_format.format_name,
"
Land
",
sm_muscol_artists.country,
"
Genre
",
sm_muscol_genres.genre_name,
"
"
) AS fulltext_1,
sm_muscol_albums.added,
sm_muscol_albums.hits,
1,
sm_muscol_albums.user_id,
22,
CONCAT(
"{\"image_intro\":\"images\\/albums\\/",
sm_muscol_albums.image,
"\",\"float_intro\":\"\",\"image_intro_alt\":\"\",\"image_intro_caption\":\"\",\"image_fulltext\":\"images\\/albums\\/",
sm_muscol_albums.image,
"\",\"float_fulltext\":\"\",\"image_fulltext_alt\":\"\",\"image_fulltext_caption\":\"\"}"
) AS images,
1,
"*",
sm_muscol_albums.added,
sm_muscol_albums.id
FROM
sm_muscol_albums,
sm_muscol_artists,
sm_muscol_genres,
sm_muscol_format
WHERE
sm_muscol_albums.artist_id = sm_muscol_artists.id AND sm_muscol_albums.genre_id = sm_muscol_genres.id AND sm_muscol_albums.format_id = sm_muscol_format.id AND sm_muscol_albums.id = XXX -
Accepted Answer
0'INSERT INTO `sm_content`(
`title`,
`alias`,
`fulltext`,
`created`,
`hits`,
`state`,
`created_by`,
`catid`,
`images`,
`access`,
`language`,
`publish_up`,
`metakey`
)
SELECT
CONCAT(
sm_muscol_artists.artist_name,
" - ",
sm_muscol_albums.name
) AS title,
LEFT(
sm_muscol_albums.image,
LENGTH(sm_muscol_albums.image) -4
) AS alias,
CONCAT(sm_muscol_albums.review,
"<p></p>
<h2>Albuminfo</h2>
<table>
<tbody>
<tr>
<td>
<p><strong>Punkte</strong></p>
</td>
<td> </td>
<td>
<p>",sm_muscol_albums.points,"/5</p>
</td>
</tr>
<tr>
<td>
<p><strong>Label</strong></p>
</td>
<td> </td>
<td>
<p>",sm_muscol_albums.label,"</p>
</td>
</tr>
<tr>
<td>
<p><strong>Veröffentlichung</strong></p>
</td>
<td> </td>
<td>
<p>",sm_muscol_albums.month,"/",sm_muscol_albums.year,"
</p>
</td>
</tr>
<tr>
<td>
<p><strong>Format</strong></p>
</td>
<td> </td>
<td>
<p>",
sm_muscol_format.format_name,
"</p>
</td>
</tr>
<tr>
<td>
<p><strong>Land</strong></p>
</td>
<td> </td>
<td>
<p>",
sm_muscol_artists.country,
"
</p>
</td>
</tr>
<tr>
<td>
<p><strong>Genre</strong></p>
</td>
<td> </td>
<td>
<p>
",
sm_muscol_genres.genre_name,
"
</p>
</td>
</tr>
</tbody>
</table>
"
) AS fulltext_1,
sm_muscol_albums.added,
sm_muscol_albums.hits,
1,
sm_muscol_albums.user_id,
22,
CONCAT(
"{\"image_intro\":\"images\\/albums\\/",
sm_muscol_albums.image,
"\",\"float_intro\":\"\",\"image_intro_alt\":\"\",\"image_intro_caption\":\"\",\"image_fulltext\":\"images\\/albums\\/",
sm_muscol_albums.image,
"\",\"float_fulltext\":\"\",\"image_fulltext_alt\":\"\",\"image_fulltext_caption\":\"\"}"
) AS images,
1,
"*",
sm_muscol_albums.added,
sm_muscol_albums.id
FROM
sm_muscol_albums,
sm_muscol_artists,
sm_muscol_genres,
sm_muscol_format
WHERE
sm_muscol_albums.artist_id = sm_muscol_artists.id AND sm_muscol_albums.genre_id = sm_muscol_genres.id AND sm_muscol_albums.format_id = sm_muscol_format.id AND sm_muscol_albums.id = -
Accepted Answer
-
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »