Errors While Putting Some Files Online After Empty Cache

Hi there,

I am running into a major problem. I have putting some files online after testing it on a test-domain. I made a copy of the online version and a copy of the test-domain version. After putting some of the test-domain files onto the online version, the webshop seemed to be missing the layout or css. In the backend I set the shop on closed. Then I set the "Rebuild cache automaticly" to On. Then under Administration I clicked on "Empty cache". After that I couldn't get into the backend anymore. In my log I see this error:

Got error 'PHP message: PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Unclosed string at position: 93173' in /var/www/vhosts/nr1print.nl/httpdocs/app/lib/vendor/tedivm/jshrink/src/JShrink/Minifier.php:476\nStack trace:\n#0 /var/www/vhosts/nr1print.nl/httpdocs/app/lib/vendor/tedivm/jshrink/src/JShrink/Minifier.php(231): JShrink\\Minifier->saveString()\n#1 /var/www/vhosts/nr1print.nl/httpdocs/app/lib/vendor/tedivm/jshrink/src/JShrink/Minifier.php(144): JShrink\\Minifier->loop()\n#2 /var/www/vhosts/nr1print.nl/httpdocs/app/lib/vendor/tedivm/jshrink/src/JShrink/Minifier.php(110): JShrink\\Minifier->minifyDirectToOutput('/*\\nATTENTION! P...', Array)\n#3 /var/www/vhosts/nr1print.nl/httpdocs/app/functions/smarty_plugins/block.scripts.php(70): JShrink\\Minifier::minify('/*\\nATTENTION! P...', Array)

Then I put the copy of the onlineversion back in his total. Then I deleted the var/cache file. But the backend is still unavailable and the frontend still without the proper layout.

I have absolutly no idea how to set it all back to normal. Please help!!!

https://nr1print.nl

EDIT

/app/lib/vendor/tedivm/jshrink/src/JShrink/Minifier.php) seems to be conflicting. When I remove this file, the backend is available again. But then the frontend runs into an error of that file missing. Obviously. But how to fix this conflict? And why did it happen (after the shop running already for 2 years)?

Hello Lianne

What version of php?

Best regards

Robert.

Hello Lianne

What version of php?

Best regards

Robert.

5.6

I did not update the shop in quite a while, I think I am on CS Cart 4.4

Hello.
How do I understand I made a copy of the store for another server?
Do you have access via ssh to this server? Is it only via ftp?
Best regards
Robert.

Hello.
How do I understand I made a copy of the store for another server?
Do you have access via ssh to this server? Is it only via ftp?
Best regards
Robert.

Sorry Robert for the confusion. I tested it on another domain, not on another server.

I have ftp access.

Hello Lianne

Have you changed your domain?
Does the new domain point to the same directory as the previous one ? (what kind of hosting management program do you use? DirectAdmin, CPanel or another?)
Have you changed the contents of config.local.php?

Best regards

Robert

PM me temporary FTP access, we will check the issue

Hello Lianne

Have you changed your domain?
Does the new domain point to the same directory as the previous one ? (what kind of hosting management program do you use? DirectAdmin, CPanel or another?)
Have you changed the contents of config.local.php?

Best regards

Robert

Hi Robert, I think I know where you are heading. But that does not seem to be the issue. I have 2 domains and 2 local copies. I am carefull where it comes to overwriting config files. Besides that, it worked already, but de layout was crooked. So when I clicked on "Administration->Empty Cache" to restore the layout, then the backend became unavailable.

(server is with Plesk)

PM me temporary FTP access, we will check the issue

I did! Thanks!