-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Use #2
Comments
Hi Milan,
Glad that you are using my library.
TestSimpleResource class should be available only in test mode (autoload-dev). Can you please share your file or code to see how you are implementing it?
Thanks,
Tareq Mahmood
… On Jul 25, 2017, at 6:41 PM, mIlanvivacity ***@***.***> wrote:
Hello,
Greetings!
Getting issue in using this library, getting error "Fatal error: Class 'PHPShopify\TestSimpleResource' not found", please guide what I am missing.
Looking forward for your help.
Thanks & Regards
Milan G.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#2>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFCOnYk7jZ7F42mWlxXcYPrrp21XaEX5ks5sReKNgaJpZM4Oif6I>.
|
Hello Tareq Thanks for quick reply! I am trying to access to the file like http://localhost/phpshopify/tests/BlogTest.php and it is giving me an error Fatal error: Class 'PHPShopify\TestSimpleResource' not found in /opt/lampp/htdocs/phpshopify/tests/BlogTest.php on line 12 Thanks & Regards |
Hi Milan,
That won’t work that way actually. You need a composer, composer.json to define the library and php script which will include the vendor/autoload.php file. Then you can call BlogTest class from the php file.
If you still want it without composer, you need to create a custom file and include all necessary class files manually. Like :
include ‘phpshopfiy/tests/TestSimpleResource.php’
include ‘phpshopfiy/tests/BlogTest.php’
Thanks,
Tareq Mahmood
… On Jul 26, 2017, at 1:17 PM, mIlanvivacity ***@***.***> wrote:
Hello Tareq
Thanks for quick reply!
I am trying to access to the file like http://localhost/phpshopify/tests/BlogTest.php <http://localhost/phpshopify/tests/BlogTest.php> and it is giving me an error Fatal error: Class 'PHPShopify\TestSimpleResource' not found in /opt/lampp/htdocs/phpshopify/tests/BlogTest.php on line 12
Haven't added any custom code yet
Thanks & Regards
Milan G.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#2 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFCOnSeRLQv0ofP98kC8sY-oqbifaKbZks5sRugXgaJpZM4Oif6I>.
|
Hello Tareq I have composer.json but still didn't figured out how to use it |
HI,
Try putting this php file same folder (shopifywp) and modify as per your need.
Thanks,
Tareq Mahmood
… On Jul 26, 2017, at 3:32 PM, mIlanvivacity ***@***.***> wrote:
Hello Tareq
I hope these screenshots will help you for guiding me, I ran the command to download the package and this is what I got, please see screenshots
<https://user-images.githubusercontent.com/30437003/28614407-5ce11f8e-7213-11e7-8405-6a2b5d96bd21.png>
<https://user-images.githubusercontent.com/30437003/28614406-5ce10404-7213-11e7-8919-0938f9a393fd.png>
Looking forward for your reply.
Thanks & Regards
Milan G.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#2 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFCOnWgLc6juxhczoRTs0h6ab1MNjsmXks5sRweqgaJpZM4Oif6I>.
|
It won’t. It’s not the proper way of doing it. Please follow the file I sent you.
… On Jul 26, 2017, at 3:57 PM, mIlanvivacity ***@***.***> wrote:
Hello Tareq
I copied the file BlogTest.php to shopifywp
<https://user-images.githubusercontent.com/30437003/28615491-ddfb67b6-7216-11e7-8ad7-ffd21a730069.png>
folder and tried to run that file, still got the same error.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#2 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFCOnboqU43hXIq6kH0aL9NGZJ1mfRQqks5sRw11gaJpZM4Oif6I>.
|
which file? |
Please check my last emails. I sent you an example php file.
… On Jul 26, 2017, at 4:14 PM, mIlanvivacity ***@***.***> wrote:
which file?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#2 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFCOnbcorD4Z8loyGb286TwZ5JFPCDKxks5sRxF5gaJpZM4Oif6I>.
|
Sorry, but I can't find any file. can you please send me again. Thanks in advance |
Sorry, I was replying in emails. Not sure, why the file didn't come here. As you closed the ticket, I think the issue is resolved for you. Thank you. |
yes it is, thank you
…On Wed, Jul 26, 2017 at 6:54 PM, Tareq Mahmood ***@***.***> wrote:
Sorry, I was replying in emails. Not sure, why the file didn't come here.
As you closed the ticket, I think the issue is resolved for you. Thank you.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AdBui9QAxDpVSRUxu8lO-IV-bT97Sk2Uks5sRz4agaJpZM4Oif6I>
.
|
I have the same issue. What was the solution? What is the right way to work with this sdk, just want to test with the test files |
@yacineA Are you using composer or directly including the files? |
@tareqtms I've installed composer, then I modified one file from test files, by adding the line : "require_once "PATH/vendor/autoload.php" , but I got always the error that the Class from which is extended the actual class in the file is not defined. |
Can you send me the php example file ? |
Hello Tareq, |
…hpclassic#2 ($string) of type string is deprecated
Hello,
Greetings!
Getting issue in using this library, getting error "Fatal error: Class 'PHPShopify\TestSimpleResource' not found", please guide what I am missing.
Looking forward for your help.
Thanks & Regards
Milan G.
The text was updated successfully, but these errors were encountered: