Closed (fixed)
Project:
Notify log
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2015 at 06:54 UTC
Updated:
12 Jan 2020 at 15:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
eugene.ilyin commentedComment #2
eugene.ilyin commentedThis patch can correct this problem
Comment #4
kala4ekAccepted with little changes, thanks a lot.
Comment #6
eugene.ilyin commentedComment #7
wdseelig commentedThis is a curiosity question more than anything else.
I, too, was getting the "call to undefined function" error when I tried to load a library in a module that I have developed. The problem occurred when I tried to execute the libraries_load function at the top of my module [i.e. outside all of the functions], but worked fine when I put it within a function. Can somebody tell me why?
This fails:
<?php
libraries_load('somelibrary'); //Generates "call to undefined function error
function1(){
...
}
function2(){
...
}
But this succeeds:
<?php
function1(){
libraries_load('somelibrary');
...
}
function2(){ . //Doesn't need 'somelibrary'
...
}