Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclosed string at position #4478

Closed
JinksKid opened this issue Jan 14, 2025 · 3 comments
Closed

Unclosed string at position #4478

JinksKid opened this issue Jan 14, 2025 · 3 comments

Comments

@JinksKid
Copy link

PHP version: 8.2.26
FreeScout version: 1.8.160
Database: MySQL
Are you using CloudFlare: No
Are you using non-official modules: Yes

I tried to install the HostetskiGPT module. It has broken my freescout.
The dropdown menus are not working and if i goto /modules/list, the Deactivate button doesnt work.

Logs are showing this error:
Error: Unclosed string at position: 599832; File: /home/wlwtnhgw/public_html/freescout/vendor/tedivm/jshrink/src/JShrink/Minifier.php (500)

Browser console is showing:
Uncaught ReferenceError: hostetskigptInit is not define

Is there a way i can deactivate HostetskiGPT and remove manually?

@presswizards
Copy link

@JinksKid I had this issue as well, that module doesn't seem to work anymore sadly. See #4440 for more info and code snippets that I got working.

To fix it you'll need to delete the folder via SSH/FTP etc, and then clear the cache:
https://github.com/freescout-help-desk/freescout/wiki/Clearing-the-Cache

@JinksKid
Copy link
Author

Thanks @presswizards

Just tried that and clearing the cache from tools.php give me this:

Cache cleared:
In Application.php line 635:
Class "Modules\HostetskiGPT\Providers\HostetskiGPTServiceProvider" not found

log:

[2025-01-15 13:36:45] production.ERROR: Class "Modules\HostetskiGPT\Providers\HostetskiGPTServiceProvider" not found {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Class "Modules\HostetskiGPT\Providers\HostetskiGPTServiceProvider" not found at /home/wlwtnhgw/public_html/freescout/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:635)
[stacktrace]
#0 /home/wlwtnhgw/public_html/freescout/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(582): Illuminate\Foundation\Application->resolveProvider()
#1 /home/wlwtnhgw/public_html/freescout/overrides/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(89): Illuminate\Foundation\Application->register()
#2 /home/wlwtnhgw/public_html/freescout/vendor/nwidart/laravel-modules/src/Laravel/Module.php(27): Illuminate\Foundation\ProviderRepository->load()
#3 /home/wlwtnhgw/public_html/freescout/overrides/nwidart/laravel-modules/src/Module.php(279): Nwidart\Modules\Laravel\Module->registerProviders()
#4 /home/wlwtnhgw/public_html/freescout/overrides/nwidart/laravel-modules/src/Repository.php(366): Nwidart\Modules\Module->register()
#5 /home/wlwtnhgw/public_html/freescout/vendor/nwidart/laravel-modules/src/Providers/BootstrapServiceProvider.php(22): Nwidart\Modules\Repository->register()
#6 /home/wlwtnhgw/public_html/freescout/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(586): Nwidart\Modules\Providers\BootstrapServiceProvider->register()
#7 /home/wlwtnhgw/public_html/freescout/vendor/nwidart/laravel-modules/src/ModulesServiceProvider.php(38): Illuminate\Foundation\Application->register()
#8 /home/wlwtnhgw/public_html/freescout/vendor/nwidart/laravel-modules/src/LaravelModulesServiceProvider.php(15): Nwidart\Modules\ModulesServiceProvider->registerModules()
#9 [internal function]: Nwidart\Modules\LaravelModulesServiceProvider->boot()
#10 /home/wlwtnhgw/public_html/freescout/overrides/laravel/framework/src/Illuminate/Container/BoundMethod.php(28): call_user_func_array()
#11 /home/wlwtnhgw/public_html/freescout/overrides/laravel/framework/src/Illuminate/Container/BoundMethod.php(87): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#12 /home/wlwtnhgw/public_html/freescout/overrides/laravel/framework/src/Illuminate/Container/BoundMethod.php(27): Illuminate\Container\BoundMethod::callBoundMethod()
#13 /home/wlwtnhgw/public_html/freescout/overrides/laravel/framework/src/Illuminate/Container/Container.php(549): Illuminate\Container\BoundMethod::call()
#14 /home/wlwtnhgw/public_html/freescout/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(792): Illuminate\Container\Container->call()
#15 /home/wlwtnhgw/public_html/freescout/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(775): Illuminate\Foundation\Application->bootProvider()
#16 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation\{closure}()
#17 /home/wlwtnhgw/public_html/freescout/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(774): array_walk()
#18 /home/wlwtnhgw/public_html/freescout/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\Foundation\Application->boot()
#19 /home/wlwtnhgw/public_html/freescout/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(213): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap()
#20 /home/wlwtnhgw/public_html/freescout/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(162): Illuminate\Foundation\Application->bootstrapWith()
#21 /home/wlwtnhgw/public_html/freescout/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(146): Illuminate\Foundation\Http\Kernel->bootstrap()
#22 /home/wlwtnhgw/public_html/freescout/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#23 /home/wlwtnhgw/public_html/freescout/public/index.php(82): Illuminate\Foundation\Http\Kernel->handle()
#24 {main}
"}

@JinksKid
Copy link
Author

It has now resolved itself. Thanks @presswizards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants