PHP Fatal error: Uncaught Error: Call to undefined function create_function()

Solution to PHP Fatal error call to undefined create_function()

Reading Time: 2 minutes PHP Fatal error: Uncaught Error: Call to undefined function create_function() in /Users/napoleon/Sites/pfswp22/wp-content/themes/material/framework/widget-social-links.php:166 PHP Fatal error: Uncaught Error: Call to undefined function create_function() in /Users/napoleon/Sites/pfswp22/wp-content/themes/material/framework/widget-social-links.php:166 Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website. Root cause of the problem: create_function() is depriciated […]

How to find the Django version

Reading Time: < 1 minutes There are multiple ways to find Django Version Option 1 Another option to login to python shell and query for django version Option 2 Option 3 Execute like a bash option -c , -c option allows to execute commands as string Option 4 Using django-admin command you can get django version Option 5 You can […]

Django error message: [“’on’ value must be either True or False.”]

Reading Time: < 1 minutes This error occurs in multiple use cases, the following is one use cases which i faced, The usecase is when you use custom user model, and you are creating the migrations from the beginning on a new database, Django will not allow createsuperuser on the custom model. You can follow this simple solution to solve […]

Mp3player written in visual basic6

MP3 Player in Visual Basic

Reading Time: 3 minutes  Back then during my college days, I got fascinated by programming and was enjoying coding. It was at that time we use to get invite to participate in lot of coding competitions from different colleges. I was doing Bachelor in Computer Science & Education (B.Sc.Ed. Integrated Course) Computer Science. Project Kickoff I set out to […]

Water level controller using arduino

Reading Time: 4 minutes Hey, is the motor switched off ? is a question that is very familiar in every household in this modern world. Ours is no different, this was growing like a never-ending story. It was at that time I attended IOT Workshop conducted by Mr. Aravind Padmanaban at IEDF.in ( Currently Devopedia.org ) It seemed that everything happened at […]

Pass by reference in PHP

Reading Time: < 1 minutes In PHP you can pass a variable to a function as reference. When you do that actual “Memory address is passed” instead of “A Copy of the value” hence any change you make inside the function will reflect even after the outside after the function is executed. Note: You give & (ampersand) before the variable […]

PHP Fatal error: Uncaught Error: Using $this when not in object context in file.php

Reading Time: < 1 minutes As per php documentation, Because static methods are callable without an instance of the object created, the pseudo-variable $this is not available inside methods declared as static. https://www.php.net/manual/en/language.oop5.static.php In the above code snippet, static method getValue() will throw the error this is the same use case. Things to be noted in Static Method and Static Variable: Static […]

Awesome Quotes

Reading Time: 3 minutes “The best way to predict the future is to invent it.” – Alan Kay “People who are really serious about software should make their own hardware.” – Alan Kay “The only way to do great work is to love what you do.” – Steve Jobs “He not busy being born is busy dying.” – Bob Dylan “History is always […]