question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fatal error: Uncaught Error: Class 'cxxt\Exchange'

See original GitHub issue

my code is:

<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL | E_STRICT);
include "ccxt.php";
var_dump (\cxxt\Exchange::$exchanges); 
?>

but my server give me an error: Fatal error: Uncaught Error: Class ‘cxxt\Exchange’ not found in /var/www/html/trading bot/prova.php:6 Stack trace: #0 {main} thrown in /var/www/html/trading bot/prova.php on line `6```

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
kroitorcommented, Sep 6, 2017

See: https://github.com/kroitor/ccxt/tree/master/examples/php

There’s only one simplest PHP example there, but we hope to extend PHP examples with your help )

If this does not work…

<?php
// ccxt/build folder should be in your include path
// see http://php.net/manual/en/ini.core.php#ini.include-path on how to set it up
include 'ccxt.php'; 
$exchanges = \ccxt\Exchange::$exchanges;
echo 'Supported exchanges: ' . implode (', ', $exchanges);
?>

… then let us know your PHP version and your ccxt version )

1reaction
jjheskcommented, Apr 6, 2018

huobi has a new logo 2018-04-06 4 34 14

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught Error: Class 'Categorize' not found in /opt/lampp ...
In the class below called Get_category, I am trying to access an array variable called $arr from another class called Categorize. But everytime ......
Read more >
Fatal error: Uncaught Error: Class 'WDILibrary' | WordPress.org
I am another client, but you can try to enter wp-content / plugins / and change the name of the plugin. It was...
Read more >
Fatal error: Uncaught Error: Class - Hosting Support
This error is caused because the Class “Application” cannot be found; The most likely explanation for this is that the file which contains...
Read more >
Fix Wordpress Fatal Error: Uncaught Error Call to ... - YouTube
How to fix Wordpress Fatal Error : Uncaught Error Call to undefined function deactivate_plugins() in /home/ Fatal Error.
Read more >
Fatal error Cannot declare class MyClass in php:(Fixed)
In this tutorial, I am going to explain how to fix a most common error that every programmer face i.e Fatal error :...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found