Comments (6)
Hi @furey,
Indeed short_open_tag
was enabled.
Version 2.0.3
fixes the issue π. Thanks for your work and quick responses.
Cheers! βοΈ
from tinx.
Hi @jenky,
Thanks for sharing those details, and sorry to hear Tinx isn't working properly for you.
Can you please provide your operating system and version so I can look into it further for you?
If you're comfortable sharing your composer.json
file, that might help too!
FYI, I've just created a new Laravel project using the following system configuration and can confirm Tinx boots without error:
- Tinx 2.0.2
- PHP 7.1.10
- Laravel Framework 5.5.23
- macOS 10.12.6
Cheers.
from tinx.
Hi @furey
I'm using macOS 10.13.1
Still got the same error with another project. It seems like the problem came from this https://github.com/ajthinking/tinx/blob/11ee45508ba4cfa65516107dc66d7f3eb185e3c2/src/Includes/IncludeManager.php#L15 Blade couldn't render the view because of the <?placeholder
tag at the beginning of the includes.blade.php
Here is the exception trace
1 Illuminate\View\Engines\CompilerEngine::handleViewException(Object(Symfony\Component\Debug\Exception\FatalThrowableError))
**/**/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php : 47
2 Illuminate\View\Engines\PhpEngine::evaluatePath("**/**/storage/framework/views/527caa03a2a1627367ada15f44ae0c7f975ae8c9.php", [Object(Illuminate\View\Factory), Object(Illuminate\Foundation\Application)])
**/**/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php : 59
3 Illuminate\View\Engines\CompilerEngine::get("**/**/vendor/ajthinking/tinx/src/../resources/views/includes.blade.php", [Object(Illuminate\View\Factory), Object(Illuminate\Foundation\Application)])
**/**/vendor/laravel/framework/src/Illuminate/View/View.php : 137
4 Illuminate\View\View::getContents()
**/**/vendor/laravel/framework/src/Illuminate/View/View.php : 120
5 Illuminate\View\View::renderContents()
**/**/vendor/laravel/framework/src/Illuminate/View/View.php : 85
6 Illuminate\View\View::render()
**/**/vendor/ajthinking/tinx/src/Includes/IncludeManager.php : 15
7 Ajthinking\Tinx\Includes\IncludeManager::generateIncludesFile()
**/**/vendor/ajthinking/tinx/src/Console/TinxCommand.php : 86
8 Ajthinking\Tinx\Console\TinxCommand::createTinxIncludes()
**/**/vendor/ajthinking/tinx/src/Console/TinxCommand.php : 49
9 Ajthinking\Tinx\Console\TinxCommand::handle()
**/**/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php : 29
10 call_user_func_array([])
**/**/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php : 29
11 Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
**/**/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php : 87
12 Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Object(Closure))
**/**/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php : 31
13 Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), [])
**/**/vendor/laravel/framework/src/Illuminate/Container/Container.php : 549
14 Illuminate\Container\Container::call()
**/**/vendor/laravel/framework/src/Illuminate/Console/Command.php : 180
15 Illuminate\Console\Command::execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
**/**/vendor/symfony/console/Command/Command.php : 252
16 Symfony\Component\Console\Command\Command::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
**/**/vendor/laravel/framework/src/Illuminate/Console/Command.php : 167
17 Illuminate\Console\Command::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
**/**/vendor/symfony/console/Application.php : 936
18 Symfony\Component\Console\Application::doRunCommand(Object(Ajthinking\Tinx\Console\TinxCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
**/**/vendor/symfony/console/Application.php : 240
19 Symfony\Component\Console\Application::doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
**/**/vendor/symfony/console/Application.php : 148
20 Symfony\Component\Console\Application::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
**/**/vendor/laravel/framework/src/Illuminate/Console/Application.php : 88
21 Illuminate\Console\Application::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
**/**/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php : 121
22 Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
**/**/artisan : 37
23 Symfony\Component\Debug\Exception\FatalThrowableError::("Parse error: syntax error, unexpected 'use' (T_USE)")
**/**/storage/framework/views/527caa03a2a1627367ada15f44ae0c7f975ae8c9.php : 3
from tinx.
Hi @jenky,
Thanks for the follow up!
If you can clear your view cache (php artisan view:clear
) and open a new Tinker session (php artisan tinker
, not tinx
), are you able to run the following PHP statement without any exceptions being thrown?
view('tinx::includes', ['names' => [], 'config' => []])->render()
As mentioned previously, if you're comfortable sharing your composer.lock
and/or composer.json
file, that might help me debug the issue further too.
Cheers!
from tinx.
Here is my composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=7.0.0",
"ajthinking/tinx": "^2.0",
"arcanedev/log-viewer": "^4.4",
"aws/aws-sdk-php": "^3.36",
"barryvdh/laravel-cors": "^0.9.3",
"cviebrock/eloquent-sluggable": "^4.3",
"davejamesmiller/laravel-breadcrumbs": "^4.2",
"dimsav/laravel-translatable": "^8.0",
"doctrine/dbal": "2.5.*",
"edujugon/push-notification": "^2.2",
"fideloper/proxy": "~3.3",
"guilhermegonzaga/presenter": "^1.0",
"guzzlehttp/guzzle": "^6.3",
"intervention/imagecache": "^2.3",
"jenky/laravel-api": "^5.0",
"jenky/laravel-envloader": "^1.1",
"kalnoy/nestedset": "^4.3",
"laracasts/flash": "^3.0",
"laravel/framework": "5.5.*",
"laravel/scout": "^3.0",
"laravel/tinker": "~1.0",
"laravelcollective/html": "5.5.*",
"laravolt/avatar": "^2.0",
"league/period": "^3.3",
"maatwebsite/excel": "~2.1.0",
"mixpanel/mixpanel-php": "2.*",
"moneyphp/money": "^3.0",
"plank/laravel-mediable": "^2.5",
"predis/predis": "^1.1",
"propaganistas/laravel-phone": "^3.0",
"pusher/pusher-php-server": "^3.0",
"rinvex/country": "^3.1",
"simplesoftwareio/simple-qrcode": "~2",
"spatie/eloquent-sortable": "^3.4",
"spatie/laravel-activitylog": "^2.1",
"spatie/laravel-analytics": "^3.1",
"spatie/laravel-backup": "^5.0",
"spatie/laravel-permission": "^2.7",
"spatie/opening-hours": "^1.4",
"stichoza/google-translate-php": "^3.2",
"teamtnt/laravel-scout-tntsearch-driver": "^3.0",
"tymon/jwt-auth": "1.*@beta",
"watson/rememberable": "^2.0"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.1",
"filp/whoops": "^2.0",
"fzaninotto/faker": "~1.4",
"jenky/laravel-generators": "^1.0",
"laracademy/interactive-make": "^1.2",
"mockery/mockery": "~1.0",
"nunomaduro/collision": "^1.1",
"phpunit/phpunit": "~6.0",
"themsaid/laravel-langman": "^1.3"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"files": [
"app/Support/helpers.php"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
],
"test": "vendor/bin/phpunit --colors=always"
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
}
}
from tinx.
Hi @jenky,
Thanks for providing that extra information β it was super helpful!
I'm guessing your PHP configuration has short tags enabled?
To check, from the command line run:
php -i | grep short_open_tag
If you see something like thisβ¦
short_open_tag => On => On
β¦then you have short tags enabled.
If that's the case, we've just released v2.0.3 which should patch the issue.
If you have the time, can you please update to 2.0.3
and let me know how you go?
Cheers!
π€ π€
from tinx.
Related Issues (20)
- Contact details HOT 1
- re() doesn't reload observers code HOT 5
- Tinx does not remember command history HOT 4
- Reload does not reload files HOT 4
- Cursor Navigation in prompt HOT 1
- Shortcut gets 'undefined variable in Psy Shell' HOT 2
- PDO::prepare(): send of 40 bytes failed with errno=32 Broken pipe HOT 1
- re() doesn't reload changes in models located at app folder HOT 3
- Permission Denied HOT 9
- Lumen 5.3 "Class Illuminate\Foundation\Bootstrap\LoadConfiguration does not exist" HOT 1
- Running php artisan tinx prints the banner and exits. HOT 1
- re() doesn't reload route changes HOT 1
- Is it safe to use Tinx in production environments? HOT 2
- Flare config is not loaded HOT 5
- Conflict with Facade/Ignition HOT 1
- Method get does not exist HOT 2
- Class 'Arr' not found on start up HOT 2
- Faker not being loaded. HOT 1
- Support use of Thinker V2.0.0 HOT 1
- Call to undefined function Ajthinking/Tinx/Console/str_plural() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinx.