GithubHelp home page GithubHelp logo

Comments (13)

twisted1919 avatar twisted1919 commented on July 26, 2024

You have to replace the name in the source code as well, that is, the files you get when you download the library from here, all of them.

from mailwizz-php-sdk.

torstenhoegel avatar torstenhoegel commented on July 26, 2024

So I have renamed all mailwizzapi_ to mynameapi_ that's including the whole downloaded project, if you mean those files from this repository ...

Or do you mean smth different?

from mailwizz-php-sdk.

twisted1919 avatar twisted1919 commented on July 26, 2024

That's what i meant, but also file names, ok?

from mailwizz-php-sdk.

torstenhoegel avatar torstenhoegel commented on July 26, 2024

Yes I did ... thou the error says that the function doesn't exist it does ... could that be connected to an autoloader issue?

from mailwizz-php-sdk.

twisted1919 avatar twisted1919 commented on July 26, 2024

@ONIXTurtle - if you have installed from composer, you have to also modify the composer.json file in the autoload section and then recreate the composer files to autoload your class by dumping the new autoloader with composer dump-autoload

from mailwizz-php-sdk.

torstenhoegel avatar torstenhoegel commented on July 26, 2024

It tells me the following:
Generated autoload files containing 0 classes
That's strange because it should be generating it ...

from mailwizz-php-sdk.

torstenhoegel avatar torstenhoegel commented on July 26, 2024

?

from mailwizz-php-sdk.

twisted1919 avatar twisted1919 commented on July 26, 2024

Can you place the code in a repository so we can take a look? Or somewhere to download it?

from mailwizz-php-sdk.

torstenhoegel avatar torstenhoegel commented on July 26, 2024

absolutely here it is: https://github.com/ONIXTurtle/gomail-php-sdk-test

from mailwizz-php-sdk.

twisted1919 avatar twisted1919 commented on July 26, 2024

Here's your issue: https://github.com/Go-On-Network/gomail-php-sdk/blob/master/composer.json#L18 most likely.

So replace MailWizzApi_ with your naming everywhere.

from mailwizz-php-sdk.

torstenhoegel avatar torstenhoegel commented on July 26, 2024

Doesn't work I'm getting the error on the rep above: https://github.com/ONIXTurtle/gomail-php-sdk-test

that it can't find the class:

MacBook-Pro:examples torstenhogel$ php countries.php

Fatal error: Uncaught Error: Class 'GoMailApi_Config' not found in /path/test/examples/setup.php:23
Stack trace:
#0 /path/test/examples/countries.php(11): require_once()
#1 {main}
  thrown in /path/test/examples/setup.php on line 23

from mailwizz-php-sdk.

twisted1919 avatar twisted1919 commented on July 26, 2024

At https://github.com/ONIXTurtle/gomail-php-sdk-test/blob/master/GoMailApi/Autoloader.php#L42 put 9 instead of 12.

from mailwizz-php-sdk.

torstenhoegel avatar torstenhoegel commented on July 26, 2024

Awesome that fixed it ;)

from mailwizz-php-sdk.

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.