Skip Navigation

[Resolved] Issue with Toolset Dynamic Sources API Example

This thread is resolved. Here is a description of the problem and solution.

Problem:
Issue with Toolset Dynamic Sources API Example

Solution:
This issue is fixed. You should try to git clone the repository:

Relevant Documentation:
=> Issue with Toolset Dynamic Sources API Example

This support ticket is created 5 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by SteveR6772 5 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1354161

Hi

I am trying to understand the Toolset Dynamic Sources API by using the Toolset Dynamic Sources API Example.
From hidden link, I tried setting it up for development.

"npm install" worked.

"npm start" failed with the error below.

Environment is Windows 10.

Any pointers would be appreciated.

Thanks
Steve Ringwood

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start' ]
2 info using npm@6.4.1
3 info using node@v10.15.3
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle toolset-dynamic-sources-example@1.0.0~prestart: toolset-dynamic-sources-example@1.0.0
6 info lifecycle toolset-dynamic-sources-example@1.0.0~start: toolset-dynamic-sources-example@1.0.0
7 verbose lifecycle toolset-dynamic-sources-example@1.0.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle toolset-dynamic-sources-example@1.0.0~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Apache24\htdocs\playground\wp-content\plugins\toolset-dynamic-sources-example-plugin-master\node_modules\.bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\VanDyke Software\Clients\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\IDM Computer Solutions\UEStudio;C:\Program Files\IDM Computer Solutions\UltraCompare;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\WINDOWS\System32\OpenSSH\;C:\Users\Valued Customer\AppData\Local\Microsoft\WindowsApps, C:\php72;D:\Development\Android\SDK\platform-tools;C:\Program Files\nodejs\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\php72;C:\ProgramData\ComposerSetup\bin;C:\Program Files\Git\cmd;C:\Users\Valued Customer\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\Valued Customer\AppData\Local\Programs\Python\Python37\;C:\Users\Valued Customer\AppData\Local\Microsoft\WindowsApps;C:\Users\Valued Customer\AppData\Roaming\npm;C:\Program Files\nodejs;C:\Users\Valued Customer\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Valued Customer\AppData\Roaming\Composer\vendor\bin
9 verbose lifecycle toolset-dynamic-sources-example@1.0.0~start: CWD: C:\Apache24\htdocs\playground\wp-content\plugins\toolset-dynamic-sources-example-plugin-master
10 silly lifecycle toolset-dynamic-sources-example@1.0.0~start: Args: [ '/d /s /c', 'wp-scripts start' ]
11 silly lifecycle toolset-dynamic-sources-example@1.0.0~start: Returned: code: 1 signal: null
12 info lifecycle toolset-dynamic-sources-example@1.0.0~start: Failed to exec start script
13 verbose stack Error: toolset-dynamic-sources-example@1.0.0 start: `wp-scripts start`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:189:13)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:189:13)
13 verbose stack at maybeClose (internal/child_process.js:970:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid toolset-dynamic-sources-example@1.0.0
15 verbose cwd C:\Apache24\htdocs\playground\wp-content\plugins\toolset-dynamic-sources-example-plugin-master
16 verbose Windows_NT 10.0.18362
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
18 verbose node v10.15.3
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error toolset-dynamic-sources-example@1.0.0 start: `wp-scripts start`
22 error Exit status 1
23 error Failed at the toolset-dynamic-sources-example@1.0.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

#1354645

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please try to run the following commands and that will help you to resolve your issue:

git pull origin master
npm start
#1355067

I went to the toolset-dynamic-sources-example-plugin-master folder and ran

git pull origin master

and received the message

fatal: not a git repository (or any of the parent directories): .git

(Originally installed from the zip file)

Thanks
Steve

#1355615

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - Can you please just download the package again from here:
hidden link

Then try to follow the same steps to install the package.

#1355841

My issue is resolved now. Thank you!

I used git clone to install the plugin install of using the zip.