Giter VIP home page Giter VIP logo

Comments (5)

Kuri-su avatar Kuri-su commented on September 26, 2024

嗯,因为这里的composer加载了这个项目自己声明的一个helpers文件,然后里面的dd函数和laravel自带的dd函数冲突了...

现在已经修复了,再尝试一下,

from captcha_reader.

hungho001 avatar hungho001 commented on September 26, 2024

Thx a lot

from captcha_reader.

Kuri-su avatar Kuri-su commented on September 26, 2024

我刚刚也试了下...好像还是不成功,

可以考虑在报错之后, 直接去 vendor/kurisu/CAPTCHA_Reader/helpers.php 里直接把全部内容注释掉, 然后执行,composer dumpautoload , 如果一切正常,输出类似于如下且没有报错,

$ composer dumpautoload
Generating optimized autoload files
Package manifest generated successfully.

那说明引用成功,可以尝试在代码里调用
估计是packagist的CDN延迟还是啥的吧...我现在拉取下来的还是1.0.0的版本...

from captcha_reader.

hungho001 avatar hungho001 commented on September 26, 2024

我直接改掉helper.php ,可以run 但 local return "*****"
online crash
Call to undefined method CAPTCHAReader\src\App\GetImageInfo\GetImageInfo::getConfig()

from captcha_reader.

Kuri-su avatar Kuri-su commented on September 26, 2024

已经执行过 composer dumpautoload 了吗?

猜测是没有生成 classmap 导致无法加载到这个类

虽然在 composer require 之后会自动生成 classmap ,但因为生成过程中报错导致未生成成功,所以这些类没有被加载到,所以会在类里面报 undefined method

from captcha_reader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.