Гость
01 Авг 2020 23:56

We are trying to migrate our site to a new server, and also upgrade to the latest version of PHP. Most everything is working, except for some of our normal joomla articles in the frontend, and Cobalt in both frontend and administration. The error we see is 0 Invalid numeric literal when viewing certain articles in the frontend, but also when viewing Cobalt pages in either frontend or administration. I can get around the issue by setting our PHP version to 5.6, but setting it to 7 wreaks havoc. I have different issues with other components when I run PHP older than 7, so I really want to get everything working happily on 7 if possible. Is Cobalt compatible with PHP 7? Does anyone have other ideas about what might be causing my trouble? An example of one of the broken articles (not Cobalt) on my site is https://us502.directrouter.com/ ~gfkcbrhl/index.php?option=com_content&view=article&id=29&Itemid=196 An example of a broken Cobalt page is https://us502.directrouter.com/ ~gfkcbrhl/index.php?option=com_cobalt&view=records&section_id=1:928-registry&Itemid=169 Thanks for your time,

Последние изменения: 05 Авг 2020


dlbass93 VIP
Total posts: 44
02 Авг 2020 00:00

I accidentally posted that while not being logged in... Replying so I can follow for comments.


Lord_Helmchen VIP
Total posts: 31
02 Авг 2020 14:36

Hello, i use Cobalt with PHP 7.3. I had problems running PHP in FPM mode. Now running PHP-FCGI without troubles, expect the Packer don't work.

Maybe these link can help you to find more information: https://stackoverflow.com/questions/40735963/parse-error-invalid-numeric-literal


Giorgi625 VIP
Total posts: 655
03 Авг 2020 15:36

I am running several builds on Cobalt on PHP 7.3 and 7.4 without problems at all.

What version is Joomla, Cobalt and other extensions you use? Are they updated to latest version?


dlbass93 VIP
Total posts: 44
03 Авг 2020 18:17

Thanks for letting me know that Cobalt definitely works on PHP 7, that at least helps me not chase down the wrong trail.

I have looked into several links on the cause of the PHP error, but have not yet been able to identify which component is the offender. I'm still working on a way to search through a copy of the site on my local machine.

Joomla is v3.9.20

We have several other extensions that are totally up to date and working, but there are two I am still working on getting the club to renew their licenses on so we can update. They are:

Membership Pro 2.12.1 AcyMailing Enterpise 5.9.4

If you have any ideas, I'm all ears. If I have any luck fixing it, I'll let you know.


dlbass93 VIP
Total posts: 44
05 Авг 2020 19:11

Well guys, thanks for your help in tracking down the issue.

It wound up being several copies of the same bad code that one of our members was testing several years ago.

It was the exact issue that Lord_Helmchen linked to. We were comparing two numbers, but they are actually strings since they are VINs.

I think we are all fixed now.

Работает на Cobalt