# Error in line 124 of locking.php (Gravity Forms V. 2.5) \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/error-in-line-124-of-locking-php-gravity-forms-v-2-5-resolved/9041>\
**Category:** Get Help\
**Tags:** ctype\_alnum\
**Created:** [May 7, 2021, 5:38pm UTC](https://community.gravityforms.com/t/error-in-line-124-of-locking-php-gravity-forms-v-2-5-resolved/9041 "2021-05-07T17:38:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5fac0e68c60e6698](https://avatars.discourse-cdn.com/v4/letter/u/cab0a1/32.png) [@user5fac0e68c60e6698](https://community.gravityforms.com/u/user5fac0e68c60e6698)\
**Post date:** [May 7, 2021, 5:38pm UTC](https://community.gravityforms.com/t/error-in-line-124-of-locking-php-gravity-forms-v-2-5-resolved/9041/1 "2021-05-07T17:38:54Z")

</div>

All,  
The Settings menu of Gravity Forms V. 2.5, the one that drops down when designing a form, is causing the white screen of death. There is an error on line 124 of locking.php. I am not a PHP coder but I know an error when I see one. Here is one sample error message that I get when selecting one of the Settings items:

**Fatal error** : Uncaught Error: Call to undefined function ctype\_alnum() in /hermes/bosnacweb02/bosnacweb02ad/b1952/dom.lreese6248107/wp\_site\_1618585340/wp-content/plugins/gravityforms/includes/locking/locking.php:124

There has been a critical error on this website. Please check your site admin email inbox for instructions.

Version of WP is 5.7.1, PHP, V. 7.4.

Thanks,  
Matthew P. Seltzer  
[matt@seltzersoftwareservices.com](mailto:matt@seltzersoftwareservices.com)

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [May 7, 2021, 10:10pm UTC](https://community.gravityforms.com/t/error-in-line-124-of-locking-php-gravity-forms-v-2-5-resolved/9041/2 "2021-05-07T22:10:26Z")

</div>

Hi Matthew. The error is not in Gravity Forms. The issue is that your host’s PHP configuration does not include support for the `ctype_alnum` function. Please contact your web host and ask them to enable the [PHP ctype functions](https://www.php.net/manual/en/book.ctype.php) for your site.

---

<div class="post-metadata">

**Author:** ![user5fac0e68c60e6698](https://avatars.discourse-cdn.com/v4/letter/u/cab0a1/32.png) [@user5fac0e68c60e6698](https://community.gravityforms.com/u/user5fac0e68c60e6698)\
**Post date:** [May 8, 2021, 12:59pm UTC](https://community.gravityforms.com/t/error-in-line-124-of-locking-php-gravity-forms-v-2-5-resolved/9041/3 "2021-05-08T12:59:13Z")

</div>

Hello, Chris,  
Thank you for your _extremely_ rapid response. I apologize for assuming that your product was at fault but I had no way to discern what was really happening. It is going to be interesting to see what [domain.com](http://domain.com)’s response to this is going to be. I boggles my mind to think that they would not have the full complement of PHP libraries installed and ready for use.  
I will report back after I contact them and request that they make the change to our Wordpress environment. I do have one question: will they use a command-line tool on their end to install the necessary libraries, or, is this something that can be done via cPanel? (Unfortunately, [domain.com](http://domain.com) does not give users access to cPanel…otherwise, I could probably make the change, myself.)  
Thank you, again,  
Sincerely,  
Matthew P. Seltzer  
Seltzer Software Services LLC

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [May 8, 2021, 2:14pm UTC](https://community.gravityforms.com/t/error-in-line-124-of-locking-php-gravity-forms-v-2-5-resolved/9041/4 "2021-05-08T14:14:28Z")

</div>

That will most likely need to be enabled in the PHP config via the command line. Let us know how it turns out.

---

<div class="post-metadata">

**Author:** ![user5fac0e68c60e6698](https://avatars.discourse-cdn.com/v4/letter/u/cab0a1/32.png) [@user5fac0e68c60e6698](https://community.gravityforms.com/u/user5fac0e68c60e6698)\
**Post date:** [May 8, 2021, 6:42pm UTC](https://community.gravityforms.com/t/error-in-line-124-of-locking-php-gravity-forms-v-2-5-resolved/9041/5 "2021-05-08T18:42:43Z")

</div>

I will, thanks. Have to wait until Mon. May 10.

Here’s a question for you: is this something I can do, myself, using SSH from the command line? Or would I be better off letting my web hosting company do it?

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [May 9, 2021, 4:31am UTC](https://community.gravityforms.com/t/error-in-line-124-of-locking-php-gravity-forms-v-2-5-resolved/9041/6 "2021-05-09T04:31:40Z")

</div>

I think this is an issue the host needs to rectify at the server level. If you don’t have root, I don’t think you can do this.

---

<div class="post-metadata">

**Author:** ![user5fac0e68c60e6698](https://avatars.discourse-cdn.com/v4/letter/u/cab0a1/32.png) [@user5fac0e68c60e6698](https://community.gravityforms.com/u/user5fac0e68c60e6698)\
**Post date:** [May 9, 2021, 3:18pm UTC](https://community.gravityforms.com/t/error-in-line-124-of-locking-php-gravity-forms-v-2-5-resolved/9041/7 "2021-05-09T15:18:05Z")

</div>

I have root access, but I think my buddy is using shared hosting and not a virtual private server, which may cause problems. He may have to upgrade to a virtual private server hosting plan, because if any changes are made to the server’s PHP base installation, only he will be affected. The conversation I am going to have with [domain.com](http://domain.com) promises to be an interesting one.

---

<div class="post-metadata">

**Author:** ![user5fac0e68c60e6698](https://avatars.discourse-cdn.com/v4/letter/u/cab0a1/32.png) [@user5fac0e68c60e6698](https://community.gravityforms.com/u/user5fac0e68c60e6698)\
**Post date:** [May 10, 2021, 3:13pm UTC](https://community.gravityforms.com/t/error-in-line-124-of-locking-php-gravity-forms-v-2-5-resolved/9041/8 "2021-05-10T15:13:05Z")

</div>

Hi, Chris,  
[Domain.com](http://Domain.com) was able to resolve this by downgrading our version of PHP to 7.3 from 7.4. (No mention of installing the PHP common function package for 7.4 for Debian Linux. They do not open their servers to SSH connections, either.) I don’t think this will have any impact on other coding I am doing (at least, I hope not!)  
Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [May 11, 2021, 10:13pm UTC](https://community.gravityforms.com/t/error-in-line-124-of-locking-php-gravity-forms-v-2-5-resolved/9041/9 "2021-05-11T22:13:49Z")

</div>

Thanks for the update Matthew. Please let us know if you run into anything else.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [May 11, 2021, 10:13pm UTC](https://community.gravityforms.com/t/error-in-line-124-of-locking-php-gravity-forms-v-2-5-resolved/9041/10 "2021-05-11T22:13:53Z")

</div>


