# Symbol lookup error on script request

**URL:** <https://community.dreamfactory.com/t/symbol-lookup-error-on-script-request/2754>\
**Category:** Server-Side Scripting\
**Created:** [May 25, 2016, 2:40pm UTC](https://community.dreamfactory.com/t/symbol-lookup-error-on-script-request/2754 "2016-05-25T14:40:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ysadiq](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/ysadiq/32/158_2.png) [@ysadiq](https://community.dreamfactory.com/u/ysadiq)\
**Post date:** [May 25, 2016, 2:40pm UTC](https://community.dreamfactory.com/t/symbol-lookup-error-on-script-request/2754/1 "2016-05-25T14:40:46Z")

</div>

we have DF 2.1 on a centos 6 installed without using the Bitnami image,

the problem we are facing is that whenever we make GET request to a server side script, DF goes down with the below error, but any other requests to any table works fine.

`/usr/local/zend/bin/php: symbol lookup error: /usr/local/zend/lib/php_extensions/v8js.so: undefined symbol: _ZNSt6chrono3_V212system_clock3nowEv`

which shared library provides the symbol that is failing?  
so we can try to inspect.

here’s the script we trying to call:  
`// check for required body var body = event.request.parameters; var required = ["card_serial"]; lodash._.each( required, function( element ) { if (!body.hasOwnProperty(element) || !body[element]) { throw new Error( "Missing '" + element + "' in body\n" ); } });`

Your help is appreciated,

Thank you,  
Yahya Saddiq

---

<div class="post-metadata">

**Author:** ![DFCommunityManager](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/dfcommunitymanager/32/887_2.png) [@DFCommunityManager](https://community.dreamfactory.com/u/DFCommunityManager)\
**Post date:** [May 31, 2016, 3:28pm UTC](https://community.dreamfactory.com/t/symbol-lookup-error-on-script-request/2754/2 "2016-05-31T15:28:51Z")

</div>

Hey Yahya,

Thanks for reaching out. We’re looking into this for you! If someone in the community wants to help, in the meantime, we encourage that also.

–  
Thanks,  
@AlexBowen  
Community Manager

---

<div class="post-metadata">

**Author:** ![formerstaff](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/formerstaff/32/1133_2.png) [@formerstaff](https://community.dreamfactory.com/u/formerstaff)\
**Post date:** [June 1, 2016, 5:21pm UTC](https://community.dreamfactory.com/t/symbol-lookup-error-on-script-request/2754/3 "2016-06-01T17:21:03Z")

</div>

@ysadiq is this your whole script? because it looks like you’re trying to use lodash without including it.

`var lodash = require("lodash.min.js");`

---

<div class="post-metadata">

**Author:** ![ysadiq](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/ysadiq/32/158_2.png) [@ysadiq](https://community.dreamfactory.com/u/ysadiq)\
**Post date:** [June 1, 2016, 9:45pm UTC](https://community.dreamfactory.com/t/symbol-lookup-error-on-script-request/2754/4 "2016-06-01T21:45:33Z")

</div>

@formerstaff yes that’s my whole script.  
I thought the problem was from the lodash script that’s why I disabled it.

---

<div class="post-metadata">

**Author:** ![ysadiq](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/ysadiq/32/158_2.png) [@ysadiq](https://community.dreamfactory.com/u/ysadiq)\
**Post date:** [June 2, 2016, 8:41am UTC](https://community.dreamfactory.com/t/symbol-lookup-error-on-script-request/2754/5 "2016-06-02T08:41:00Z")

</div>

i disabled lodash, changed my script to this, and still the same error happens

```
required.forEach(function(element, index, array) {
   if (!body.hasOwnProperty(element) || !body[element]) {
        throw new Error( "Missing '" + element + "' in params\n" );
    }
});
```

---

<div class="post-metadata">

**Author:** ![ysadiq](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/ysadiq/32/158_2.png) [@ysadiq](https://community.dreamfactory.com/u/ysadiq)\
**Post date:** [June 21, 2016, 12:55pm UTC](https://community.dreamfactory.com/t/symbol-lookup-error-on-script-request/2754/6 "2016-06-21T12:55:41Z")

</div>

Finally we fixed it, that was somehow complicated issue …

The v8js version required by dreamfactory requires a version of GCC that is newer than supplied with CentOS by default. So I used the Software Collection (SC) repos to get newer dev tools.

However, these dev tools are too new for the v8js version. That is why this failed.

The workaround was to link older headers for the failing functions but compile them with the newer compilers.

Found clues to this here:  
[https://github.com/phpv8/v8js/issues/142](https://github.com/phpv8/v8js/issues/142)
