15 | 11 | 2018
Main menu
Login/Logout
 
Contacts
Реклама
Our button

Блог Ecolora

Код:

<a href="http://www.ecolora.com" target="_blank" rel="nothing" title="Ecolora.com"><img alt="Ecolora.com" height="31" src="http://www.ecolora.com/images/ecoloracom.gif" width="88" /></a>
Who's online

We have 71 guests and no members online

Лента новостей

http://voltstab.ru лучшие стабилизаторы напряжения.
Newsletter

More options
Previous news

Subscribers: 12 396

Welcome, Guest
Username: Password: Remember me
Component and plugin for musical sites / Компонент для музыкальных сайтов и улучшенная версия плагина MP3 Browser

TOPIC: Problem running database mode with PHP 7.2x.

Problem running database mode with PHP 7.2x. 3 weeks 6 days ago #7329

  • overtsr
  • overtsr's Avatar
  • Offline
  • Новый участник
  • Posts: 6
  • Karma: 0
I am running Commedia 4.3 in database mode, Joomla 3.8.13, MySQL 5.6.40x and with PHP 5.x all was well. but when I updated to PHP 7.2x, I had issues with viewing the frontend listing but after recreating the articles, I was able to view and play songs. But when I went to the backend and tried to “scan folder” option under Elements, I get the following error:

Fatal error: 'break' not in the 'loop' or 'switch' context in /home/bhs19662/public_html/om/ov/components/com_commedia/classes/getid3.lib.php on line 285

I can check a song and “Delete” but not able to scan a folder to update the database and get the above error.

Steve
The administrator has disabled public write access.

Problem running database mode with PHP 7.2x. 3 weeks 6 days ago #7330

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 462
  • Thank you received: 40
  • Karma: 19
Hello,
Could You please open
/home/bhs19662/public_html/om/ov/components/com_commedia/classes/getid3.lib.php on line 285
and put // at the beginnin of this line.
Last Edit: 3 weeks 6 days ago by admin.
The administrator has disabled public write access.

Problem running database mode with PHP 7.2x. 3 weeks 6 days ago #7331

  • overtsr
  • overtsr's Avatar
  • Offline
  • Новый участник
  • Posts: 6
  • Karma: 0
I don't get that error but I do get

An error has occurred.
(0) syntax error, unexpected ';'

The line 285 is
(ftell($this->fp) < 0)) {

Putting // in front of the line just creates the above error.
The administrator has disabled public write access.

Problem running database mode with PHP 7.2x. 3 weeks 5 days ago #7332

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 462
  • Thank you received: 40
  • Karma: 19
There should be
Break
The administrator has disabled public write access.

Problem running database mode with PHP 7.2x. 3 weeks 5 days ago #7333

  • overtsr
  • overtsr's Avatar
  • Offline
  • Новый участник
  • Posts: 6
  • Karma: 0
Sorry edited the wrong file. I removed the // from the wrong file and I put // before the break; on line 285, but I got the same error:

(0) syntax error, unexpected ";"
The administrator has disabled public write access.

Problem running database mode with PHP 7.2x. 3 weeks 5 days ago #7334

  • overtsr
  • overtsr's Avatar
  • Offline
  • Новый участник
  • Posts: 6
  • Karma: 0
I uninstalled the component and reinstalled it. I tested and the break error occurred and then commented out the "break" line and it now works. It may be that the host's cache was not being cleared timely. But whatever the reason with the minor edit all is well.

Thanks.
The administrator has disabled public write access.
Time to create page: 0.181 seconds
for children older than 12 years