Comments (13)
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.
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.
That's what i meant, but also file names, ok?
from mailwizz-php-sdk.
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.
@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.
It tells me the following:
Generated autoload files containing 0 classes
That's strange because it should be generating it ...
from mailwizz-php-sdk.
?
from mailwizz-php-sdk.
Can you place the code in a repository so we can take a look? Or somewhere to download it?
from mailwizz-php-sdk.
absolutely here it is: https://github.com/ONIXTurtle/gomail-php-sdk-test
from mailwizz-php-sdk.
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.
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.
At https://github.com/ONIXTurtle/gomail-php-sdk-test/blob/master/GoMailApi/Autoloader.php#L42 put 9 instead of 12.
from mailwizz-php-sdk.
Awesome that fixed it ;)
from mailwizz-php-sdk.
Related Issues (20)
- what is URL Hash in tracking campaign ? HOT 3
- API Adds Email Multiple Times Duplicated HOT 6
- where to copy examples files HOT 1
- How to get a campaign's opens/bounces/unsubscribes via API? HOT 1
- How to test it
- Installation HOT 9
- Delete list forbidden HOT 3
- This email address is blacklisted HOT 2
- Add to email blacklist? HOT 1
- API Issue
- Rest API Call Issue HOT 1
- PHP 7.4 warnings
- PHP 7.4 issues HOT 2
- Signature issue HOT 1
- Create API for list segments(Endpoint - MailWizzApi_Endpoint_ListSegments )
- PHP 8.0+ curl_init issue HOT 1
- Reconfirm someone that unsubscribed HOT 1
- Support PHP 7.4+ HOT 1
- request timeout HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailwizz-php-sdk.