cweiske / phorkie

Self-hosted pastebin software written in PHP. Pastes are editable, forkable, may have multiple files and are stored in git repositories.
https://cweiske.de/phorkie.htm
GNU Affero General Public License v3.0
216 stars 23 forks source link

error Class 'Twig_Autoloader' not found #30

Closed alepsrp closed 6 years ago

alepsrp commented 6 years ago

Hi. Can tell me, I'm not experienced. such an error:
Fatal error: Class 'Twig_Autoloader' not found in F:\OSPanel\domains\testsite\www\www-header.php on line 70

composer is installed. all components seem to be there)

cweiske commented 6 years ago

What happens if you run "composer info"? Does the file lib/twig/twig/lib/Twig/Autoloader.php exist?

alepsrp commented 6 years ago

no :(

$ composer info
pear/cache_lite          v1.8.0          Fast and safe little cache system
pear/console_getopt      v1.4.1          More info available on: http://pear.php.net/package/Console_Getopt
pear/crypt_diffiehellman v0.2.6          Implementation of Diffie-Hellman Key Exchange cryptographic protocol f...
pear/date_humandiff      v0.5.0          Generate textual time differences that are easily understandable by hu...
pear/http_request2       v2.3.0          Provides an easy way to perform HTTP requests.
pear/mime_type           v1.4.1          Detect the MIME Type of a file
pear/net_url2            v2.2.2          Class for parsing and handling URL. Provides parsing of URLs into thei...
pear/openid              v0.4.0+composer PHP implementation of OpenID 1.1 and 2.0
pear/pager               v2.5.0          Data paging class
pear/pear-core-minimal   v1.10.3         Minimal set of PEAR core files to be used as composer dependency
pear/pear_exception      v1.0.0          The PEAR Exception base class.
pear/services_libravatar v0.2.4          API interfacing class for libravatar.org
pear/services_yadis      v0.5.3          Implementation of the Yadis Specification 1.0 protocol
pear/validate            v0.8.5          Validate numbers, email, strings, dates, URIs and more
pear/versioncontrol_git  v0.5.0          VersionControl_Git is a library that provides OO interface to handle G...

during the installation of COMPASSAS at the end is:

[RuntimeException]
  Failed to clone https://git.cweiske.de/MIME_Type_PlainDetect.git, git was not found, check that it is installed
  and in your PATH env.

UPD

removed the stack from composer.json - "cweiske / mime_type_plaindetect ":" ^ 0.0.4 ", installed more. lib/twig/twig/lib/Twig/Autoloader.php exist

$ composer info
geshi/geshi              v1.0.9.0        Generic Syntax Highlighter
michelf/php-markdown     1.7.0           PHP Markdown
pear/cache_lite          v1.8.0          Fast and safe little cache system
pear/console_getopt      v1.4.1          More info available on: http://pear.php.net/package/Console_Getopt
pear/crypt_diffiehellman v0.2.6          Implementation of Diffie-Hellman Key Exchange cryptographic protocol for PHP5
pear/date_humandiff      v0.5.0          Generate textual time differences that are easily understandable by humans.
pear/http2               v1.1.2          Miscellaneous HTTP utilities
pear/http_request2       v2.3.0          Provides an easy way to perform HTTP requests.
pear/net_url2            v2.2.2          Class for parsing and handling URL. Provides parsing of URLs into their constituent parts (scheme, host, path etc.), URL ge...
pear/openid              v0.4.0+composer PHP implementation of OpenID 1.1 and 2.0
pear/pager               v2.5.0          Data paging class
pear/pear-core-minimal   v1.10.3         Minimal set of PEAR core files to be used as composer dependency
pear/pear_exception      v1.0.0          The PEAR Exception base class.
pear/services_libravatar v0.2.4          API interfacing class for libravatar.org
pear/services_yadis      v0.5.3          Implementation of the Yadis Specification 1.0 protocol
pear/system_command      v1.0.8+composer PHP commandline execution interface
pear/validate            v0.8.5          Validate numbers, email, strings, dates, URIs and more
pear/versioncontrol_git  v0.5.0          VersionControl_Git is a library that provides OO interface to handle Git repository.
pear2/services_linkback  v0.3.0          Pingback+webmention client and server implementation
twig/twig                v1.35.0         Twig, the flexible, fast, and secure template language for PHP

but now with: http://testsite/setup Fatal error: Class 'MIME_Type_PlainDetect' not found in F:\OSPanel\domains\testsite\src\phorkie\Tool\MIME\Type\PlainDetect.php on line 5

cweiske commented 6 years ago

git was not found,

This is the problem. Install git.