summerblue / phphub5 Goto Github PK
View Code? Open in Web Editor NEWPHPHub Ver 5 is a Forum project Powered by Laravel 5.1, and it is also the project build up PHP & Laravel China community (此项目已弃用)
Home Page: https://laravel-china.org/
PHPHub Ver 5 is a Forum project Powered by Laravel 5.1, and it is also the project build up PHP & Laravel China community (此项目已弃用)
Home Page: https://laravel-china.org/
用的本地搭建的环境,不是用的homestead
windows系统,前面已经复制了.env 编辑了配置,执行了composer install,在下面这一步卡住了,
运行 php artisan est:install
执行到 php artisan migrate --seed 时卡住没反应了
单独执行该命令,报下面的错误
[Illuminate\Database\QueryException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `
revisions` add index `revisions_revisionable_id_revisionable_type_index`(`revisionable_id`, `revisionable_type`))
[PDOException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes
当点击后台管理回复发生错误
Trying to get property of non-object
in replies.php line 32
at HandleExceptions->handleError('8', 'Trying to get property of non-object', '/home/vagrant/phphub5/config/administrator/replies.php', '32', array('value' => null, 'model' => object(Reply))) in replies.php line 32
at Factory->{closure}(null, object(Reply)) in Column.php line 239
at Column->renderOutput(null, object(Reply)) in DataTable.php line 289
at DataTable->parseOnTableColumns(object(Reply), array('id' => array('raw' => '387', 'rendered' => '387'), 'user' => array('raw' => object(User), 'rendered' => 'veronica.greenfelder'))) in DataTable.php line 253
at DataTable->parseResults(object(Collection)) in DataTable.php line 93
at DataTable->getRows(object(DatabaseManager), array('user' => array('relationship' => true, 'external' => false, 'editable' => true, 'visible' => true, 'setter' => false, 'description' => '', 'value' => '', 'min_value' => '', 'max_value' => '', 'min_max' => false, 'name_field' => 'name', 'options_sort_field' => 'id', 'options_sort_direction' => 'ASC', 'table' => 'users', 'column' => 'id', 'foreign_key' => 'user_id', 'multiple_values' => false, 'options' => array(), 'self_relationship' => false, 'autocomplete' => true, 'num_options' => '10', 'search_fields' => array('CONCAT(id, ' ', name)'), 'constraints' => array(), 'load_relationships' => false, 'title' => '用户', 'type' => 'belongs_to', 'field_name' => 'user', 'hint' => '', 'options_filter' => object(Closure)), 'topic' => array('relationship' => true, 'external' => false, 'editable' => true, 'visible' => true, 'setter' => false, 'description' => '', 'value' => '', 'min_value' => '', 'max_value' => '', 'min_max' => false, 'name_field' => 'title', 'options_sort_field' => 'id', 'options_sort_direction' => 'ASC', 'table' => 'topics', 'column' => 'id', 'foreign_key' => 'topic_id', 'multiple_values' => false, 'options' => array(), 'self_relationship' => false, 'autocomplete' => true, 'num_options' => '10', 'search_fields' => array('CONCAT(id, ' ', title)'), 'constraints' => array(), 'load_relationships' => false, 'title' => '话题', 'type' => 'belongs_to', 'field_name' => 'topic', 'hint' => '', 'options_filter' => object(Closure)), 'is_blocked' => array('relationship' => false, 'external' => false, 'editable' => true, 'visible' => true, 'setter' => false, 'description' => '', 'value' => '', 'min_value' => '', 'max_value' => '', 'min_max' => false, 'title' => '是否被屏蔽', 'type' => 'enum', 'options' => array(array('id' => 'yes', 'text' => '是'), array('id' => 'no', 'text' => '否')), 'field_name' => 'is_blocked', 'hint' => ''), 'body_original' => array('relationship' => false, 'external' => false, 'editable' => true, 'visible' => true, 'setter' => false, 'description' => '', 'value' => '', 'min_value' => '', 'max_value' => '', 'min_max' => false, 'limit' => '0', 'height' => '100', 'title' => '回复内容', 'field_name' => 'body_original', 'hint' => '', 'type' => 'text'), 'vote_count' => array('relationship' => false, 'external' => false, 'editable' => true, 'visible' => true, 'setter' => false, 'description' => '', 'value' => '', 'min_value' => '', 'max_value' => '', 'min_max' => true, 'symbol' => '', 'decimals' => '0', 'thousands_separator' => ',', 'decimal_separator' => '.', 'type' => 'number', 'title' => '查看次数', 'field_name' => 'vote_count', 'hint' => ''))) in viewComposers.php line 29
at AdministratorServiceProvider->{closure}(object(View))
at call_user_func_array(object(Closure), array(object(View))) in Dispatcher.php line 221
at Dispatcher->fire('composing: administrator::index', array(object(View))) in Factory.php line 496
at Factory->callComposer(object(View)) in View.php line 116
at View->renderContents() in View.php line 83
at View->render() in View.php line 161
at View->gatherData() in View.php line 147
at View->getContents() in View.php line 118
at View->renderContents() in View.php line 83
at View->render() in Response.php line 51
at Response->setContent(object(View)) in Response.php line 202
at Response->__construct(object(View)) in Router.php line 1229
at Router->prepareResponse(object(Request), object(View)) in ControllerDispatcher.php line 112
at ControllerDispatcher->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 114
at ControllerDispatcher->callWithinStack(object(AdminController), object(Route), object(Request), 'index') in ControllerDispatcher.php line 67
at ControllerDispatcher->dispatch(object(Route), object(Request), 'Frozennode\Administrator\AdminController', 'index') in Route.php line 203
at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
at Route->run(object(Request)) in Router.php line 708
at Router->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in PostValidate.php line 44
at PostValidate->handle(object(Request), object(Closure))
at call_user_func_array(array(object(PostValidate), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in ValidateModel.php line 27
at ValidateModel->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ValidateModel), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in ValidateAdmin.php line 46
at ValidateAdmin->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ValidateAdmin), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
at Pipeline->then(object(Closure)) in Router.php line 710
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 673
at Router->dispatchToRoute(object(Request)) in Router.php line 635
at Router->dispatch(object(Request)) in Kernel.php line 236
at Kernel->Illuminate\Foundation\Http{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in OAuthExceptionHandlerMiddleware.php line 36
at OAuthExceptionHandlerMiddleware->handle(object(Request), object(Closure))
at call_user_func_array(array(object(OAuthExceptionHandlerMiddleware), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in FilterIfPjax.php line 29
at FilterIfPjax->handle(object(Request), object(Closure))
at call_user_func_array(array(object(FilterIfPjax), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in RecordLastActivedTime.php line 17
at RecordLastActivedTime->handle(object(Request), object(Closure))
at call_user_func_array(array(object(RecordLastActivedTime), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in CheckUserIsItBanned.php line 18
at CheckUserIsItBanned->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckUserIsItBanned), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in VerifyCsrfToken.php line 50
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 23
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in StartSession.php line 62
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Request.php line 97
at Request->handle(object(Request), object(Closure))
at call_user_func_array(array(object(Request), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
at Pipeline->then(object(Closure)) in Kernel.php line 122
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 53
RT,composer update 失败。
config/app.php 里面有 Prettus\Repository\Providers\RepositoryServiceProvider::class,可以去掉?
直接访问后台地址 http://phphub5.app/admin 一直等待没有反应,请问还需要别的配置吗
由于 https://github.com/mohd-isa/follow已经移除,所以composer install 会出现错误,需要进行修改
我用了ubuntu16.04+php7+homestead0.3+virtualbox-0.5.0.box,一直有各种错误,请问大大具体的开发环境是什么?
谢谢各位大大的指点。
thujohn/rss 这个仓库被删除
1.在查看非本人专栏文章时,获得的文章是空因而显示出错get property of non-object的错误,而https://laravel-china.org网站是没有问题的,应该是大大忘记上传文件了,或者哪个版本不对?
2.传递参数出错,TopicsController::show()中有两个参数,一个id和request,但是在PagesController中还是用了以前的代码,只有一个参数,此错误在https://laravel-china.org的wiki显示中也是有问题的。
后台在删除数据时,只是在后台显示中删除了,但是在mysql数据库中并没有删除
node_module/social-share.js/dist/*****/social-share.js not found.
估计就是此问题导致话题的社会化分享模块无法显示.
https://packagist.org/packages/smartisan/follow
from
https://github.com/mohd-isa/follow
is 404
smartisan/follow Has been deleted
Please look for alternatives
php artisan est:init-rbac
[Illuminate\Database\QueryException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'phphub5.users' d
oesn't exist (SQL: select * from `users` where `users`.`deleted_at` is null
limit 1)
[PDOException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'phphub5.users' d
oesn't exist
如题,应该做兼容处理,判断id对应的文章是否存在,不在的话跳转到列表页吧
我发现点击「新建话题」的时候偶尔404,URL 变成 https://phphub.org/topics/create%0A%20%20%20%20%20%20%20%20%20%20
為何 https://laravel-china.org/ 沒有 forget password link, 我忘記密碼, 所以不能login
能不能写个教程出来,供新手学习学习
Bug 地址:https://laravel-china.org/topics/1349
点击该链接之后,跳转 404 错误:
https://laravel-china.org/topics/%5C%5Cwww.hagongyi.com
查看 hhvm 日志,提示:
Fatal error: more than one trait contains method 'restore' in /home/vagrant/Code/laravel/public/phphub5/app/Models/User.php on line 17.
应该是 restore 方法重复定义了...
新手不知道怎么修改,请指教
改了很多东西 这个开源的项目还不错 就是有的东西没有写清楚 如果有需要的大家一起讨论
线上地址www.php-laravel.com
请问有没有在生产环境安装的wiki?
composer install以后turbo.git下载失败,请问下高手是什么原因?在git上搜索也没找到
Failed to download overtrue/laravel-follow from dist: The "https://api.github.com/repos/overtrue/laravel-follow/zipball/2ad4d232ccccd1cf4a680794d358d243097b870f" file could not be downloaded (HTTP/1.1 302 Found) Now trying to download from source
文件路径config/database.php
,修改mysql配置
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8', // changed
'collation' => 'utf8_unicode_ci', // changed
'prefix' => '',
'strict' => false,
],
`
当保存为草稿功能后,点击发布失败,好像https://laravel-china.org/网站也是这样,不知道其它人有没有遇到?
好像没开源后台管理的部分,请问可以开源一下这个吗?
在文章编写处和发起讨论的正文编写处不能Emoji 自动补全,回复正常,https://laravel-china.org线上网站也是如此。
Resolving dependencies through SAT
Dependency resolution completed in 0.009 seconds
Your requirements could not be resolved to an installable set of packages.Problem 1
- Installation request for socialiteproviders/weixin v2.1.1 -> satisfiable by socialiteproviders/weixin[v2.1.1].
- socialiteproviders/weixin v2.1.1 requires socialiteproviders/manager ~2.1 -> no matching package found.
根据我的判断,应该是 composer.lock 中没有对应的 socialiteproviders/weixin v2.1.1,但是当时是如何安装的?奇怪啊。
我先使用 composer update
跑起来项目。
D:\websites\phphub5>npm install --no-bin-links
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\browserify requires glob@'^4.0.5' but will load
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\glob,
npm WARN unmet dependency which is version 5.0.15
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-less\node_modules\accord requires glob@'7.0.3' but will load
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\glob,
npm WARN unmet dependency which is version 5.0.15
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpspec\node_modules\gulp-logger requires chalk@'^0.5.1' but will load
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpspec\node_modules\chalk,
npm WARN unmet dependency which is version 1.1.3
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpspec\node_modules\gulp-logger requires gulp-util@'^3.0.0' but will load
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpspec\node_modules\gulp-util,
npm WARN unmet dependency which is version 2.2.20
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpspec\node_modules\jshint requires minimatch@'2.0.x' but will load
npm WARN unmet dependency D:\websites\phphub5\node_modules\minimatch,
npm WARN unmet dependency which is version 3.0.2
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpspec\node_modules\jshint requires lodash@'3.7.x' but will load
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpspec\node_modules\lodash,
npm WARN unmet dependency which is version 3.10.1
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpspec\node_modules\gulp-jshint\node_modules\gulp-util requires through2@'^2.0.0' but will load
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpspec\node_modules\gulp-jshint\node_modules\through2,
npm WARN unmet dependency which is version 0.6.5
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpspec\node_modules\gulp-jshint\node_modules\rcloader requires lodash@'~2.4.1' but will load
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpspec\node_modules\lodash,
npm WARN unmet dependency which is version 3.10.1
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpspec\node_modules\gulp-util\node_modules\chalk requires supports-color@'^0.2.0' but will load
npm WARN unmet dependency D:\websites\phphub5\node_modules\supports-color,
npm WARN unmet dependency which is version 3.1.2
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpspec\node_modules\gulp-todo\node_modules\gulp-util requires through2@'^2.0.0' but will load
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpspec\node_modules\gulp-todo\node_modules\through2,
npm WARN unmet dependency which is version 0.6.5
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpunit\node_modules\gulp-messenger\node_modules\gulp-debug\node_modules\gulp-util requires object-assign@'^3.0.0' but will load
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpunit\node_modules\gulp-messenger\node_modules\gulp-debug\node_modules\object-assign,
npm WARN unmet dependency which is version 4.1.0
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-phpunit\node_modules\gulp-util\node_modules\chalk requires supports-color@'^0.2.0' but will load
npm WARN unmet dependency D:\websites\phphub5\node_modules\supports-color,
npm WARN unmet dependency which is version 3.1.2
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass requires glob@'^7.0.3' but will load
npm WARN unmet dependency D:\websites\phphub5\node_modules\laravel-elixir\node_modules\glob,
npm WARN unmet dependency which is version 5.0.15
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "D:\Program Files\nodejs\node.exe" "D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "--no-bin-links"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants laravel-elixir@^5.0
npm ERR! Please include the following file with any support request:
npm ERR! D:\websites\phphub5\npm-debug.log
前台phphub5.app正常;但是访问phphub5.app/admin 不行了!
跳转链接:http://phphub.app/login?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fv3%2Foauth%2F%23redirect-uri-mismatch&state=Yh2tHZcB03ZEdLB7sou3LPVRkw7FyHVl0F49WI4i
RuntimeException in EncryptionServiceProvider.php line 29:
No supported encrypter found. The cipher and / or key length are invalid.
in EncryptionServiceProvider.php line 29
at EncryptionServiceProvider->Illuminate\Encryption\{closure}(object(Application), array()) in Container.php line 738
at Container->build(object(Closure), array()) in Container.php line 631
at Container->make('encrypter', array()) in Application.php line 674
at Application->make('encrypter') in Container.php line 842
at Container->resolveClass(object(ReflectionParameter)) in Container.php line 805
at Container->getDependencies(array(object(ReflectionParameter)), array()) in Container.php line 774
at Container->build('App\Http\Middleware\EncryptCookies', array()) in Container.php line 631
at Container->make('App\Http\Middleware\EncryptCookies', array()) in Application.php line 674
at Application->make('App\Http\Middleware\EncryptCookies') in Pipeline.php line 123
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Request.php line 97
at Request->handle(object(Request), object(Closure))
at call_user_func_array(array(object(Request), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
at Pipeline->then(object(Closure)) in Kernel.php line 122
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 53
at require_once('/Users/machero/code/phphub/public/index.php') in server.php line 21
前几天是正常的……回去看了下 Packagist 貌似项目已经被删除了,有可能是这个原因吗?
$ composer install
Problem 1
- smartisan/follow dev-master requires laravel/laravel >= 5.1 -> no matching package found.
- smartisan/follow dev-master requires laravel/laravel >= 5.1 -> no matching package found.
- Installation request for smartisan/follow dev-master -> satisfiable by smartisan/follow[dev-master].
自己回复自己的帖子,也收到邮件通知,这个就有点尴尬了
➜ phphub5 git:(master) ✗ composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 42 installs, 5 updates, 0 removals
- Installing summerblue/turbo (0.3.2) Downloading: Failed Failed to download summerblue/turbo from dist: The "https://api.github.com/repos/summerblue/Turbo/zipball/e521ca5b52cc1164f656db51472563cbf2b87d18" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
- Installing summerblue/turbo (0.3.2) Cloning e521ca5b52
[RuntimeException]
Failed to clone https://github.com/summerblue/Turbo.git via https, ssh protocols, aborting.
- https://github.com/summerblue/Turbo.git
Cloning into '/Users/xieweizhi/Documents/Money/phphub5/vendor/summerblue/turbo'...
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/summerblue/Turbo.git/'
- [email protected]:summerblue/Turbo.git
Cloning into '/Users/xieweizhi/Documents/Money/phphub5/vendor/summerblue/turbo'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
请问如何解决呢?
不定时可以访问网站的后台,并且可以操作后台数据(没有干坏事)。
手机调用{{url}}/me 返回500,望解决,谢谢!
安装的时候提示:
[Illuminate\Database\QueryException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (S
QL: alter table revisions
add index revisions_revisionable_id_revisionable_type_index
(revisionable_id
, revis ionable_type
))
[PDOException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes
看说明是索引组合后最大长度超限制了,不知道大家是怎么解决的。我用的MYSQL
虽然文档页面可以访问,但是文档页所有的响应状态码都是 404
GET /docs/home HTTP/1.1
Host: laravel-china.org
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
DNT: 1
Referer: https://laravel-china.org/docs/home
Accept-Encoding: gzip, deflate, sdch, br
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.
HTTP/1.1 404 Not Found
Server: nginx/1.11.3
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: no-cache
Date: Thu, 29 Sep 2016 07:55:37 GMT
Set-Cookie: XSRF-TOKEN=***; expires=Thu, 29-Sep-2016 09:55:37 GMT; Max-Age=7200; path=/
Content-Encoding: gzip
Master 分支中的 .env.example
文件缺少 BLOG_CATEGORY_ID=8
,phphub.blog_category_id
没有默认值,主分支中有查询使用了此配置,导致进入个人中心报错。
因为没有 releases,所以只能把 master 应看成 releases 了。
另外,为什么有
phphub.blog_category_id
app.wiki_topic_id
这样的配置,不放在一起有些困惑,是不是放在一起更好一些。
php artisan est:install 执行完毕后 登录管理后台:http://phphub5.app/admin 直接转github登录窗口吗?并不是像文档所说 "在开发环境下,直接访问后台地址即可登录 1 号用户。"
另外.env 文件
// Github oauth
CLIENT_ID=eefd4111fbcb0e1d0fb9
CLIENT_SECRET=3dce7078f20bc10a1f6bef559b81787648f1b372
// Github Card
GITHUB_CARD_CLIENT_ID=eefd4111fbcb0e1d0fb9
GITHUB_CARD_CLIENT_SECRET=3dce7078f20bc10a1f6bef559b81787648f1b372
这些CLIENT_ID、CLIENT_SECRET貌似是生产环境的.......
Problem 1
- Installation request for intervention/image 2.3.7 -> satisfiable by intervention/image[2.3.7].
- intervention/image 2.3.7 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
Problem 2
- Installation request for naux/sendcloud 1.1 -> satisfiable by naux/sendcloud[1.1].
- naux/sendcloud 1.1 requires php >=5.6 -> your PHP version (5.5.30) does not satisfy that requirement.
Problem 3
- Installation request for socialiteproviders/manager v2.1.5 -> satisfiable by socialiteproviders/manager[v2.1.5].
- socialiteproviders/manager v2.1.5 requires php ^5.6 || ^7.0 -> your PHP version (5.5.30) does not satisfy that requirement.
Problem 4
- Installation request for socialiteproviders/weixin v2.1.1 -> satisfiable by socialiteproviders/weixin[v2.1.1].
- socialiteproviders/weixin v2.1.1 requires php ^5.6 || ^7.0 -> your PHP version (5.5.30) does not satisfy that requirement.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.