PHPCMS v9 content_output.class.php Line 338 Error Fix

         Finally saying goodbye to Dedecms after 5 years of use 鈥?I simply couldn’t fight off the endless attacks anymore! After battling for weeks, the trojans were finally gone~~~~ but at the cost of being unable to add articles myself!

Helpless! I decided to switch to PHPCMS, but this switch was no small matter~~ I uncovered over 5,000 spam accounts along the way, no wonder the database file was so huge~

This was my first time using PHPCMS, and I wasn’t very familiar with it. After fumbling around for a few days with the PHPCMS program, I ran into numerous frustrations! It’s completely different from Dedecms.

Right after switching to PHPCMS, I encountered this tricky problem, and I was still unfamiliar with the program structure.

When publishing an article, the backend went completely blank. After enabling display_errors in php.ini, I got the following error:

Parse error: syntax error, unexpected ‘}’ in /var/wwwroot/caches/caches_model/caches_data/content_output.class.php on line 338

I puzzled over it for a long time. Since I wasn’t very familiar with the program, I figured the caches directory must contain cache-related content. When I opened the error file, I saw it was only half-generated, so the error made sense.

Finally, after a long search, I narrowed the issue down to the file wwwroot/phpcms/modules/content/fields/video/output.inc.php. Its content was also incomplete 鈥?likely due to an incomplete upload. But even after re-uploading the file in binary mode, the problem persisted; it was still incomplete. In the end, I copied the file content, created a new file locally to save it, uploaded it to overwrite the old one, refreshed the full site cache, and the problem was solved.

The solution was reposted from Website Developer Community&nbsp

Leave a Comment

Your email address will not be published.