nuSOAP library error when run in CodeIgniter - php

while running nusoap 0.9.5 i get this error
A PHP Error was encountered
Severity: Warning
Message: Attempt to modify property of non-object
Filename: nusoap/nusoap.php
Line Number: 4694
i found a patch while searching Dr. Google that supposed to solve this probem
nusoap-version-0-9-5-attempt-to-modify-property-of-non-object-in-nusoap-php
and even though it solved the problem while run not from inside CodeIgniter, while i do it came up with a new error
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: nusoap/nusoap.php
Line Number: 4693
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: nusoap/nusoap.php
Line Number: 4695

Fortunately Noah Eltzroth from http://www.noaheltzroth.com/
helped me to solve this problem
after doing this
To fix this problem I modified line 4694 in nusoap.php from:
$this->schemas[$ns]->imports[$ns2][$ii]['loaded'] = true;
To this:
$this->schemas[$ns][$ns2]->imports[$ns2][$ii]['loaded'] = true;
if you still get the same error i got in the CodeIgniter, simply add # operator to remove the errors
the script works even though it shows the error, it is fine to hide the error
if (! #$list2[$ii]['loaded']) {
$this->schemas[$ns][$ns2]->imports[$ns2][$ii]['loaded'] = true;
$url = #$list2[$ii]['location'];

Related

Severity: Core Warning Message: Module 'mysqli' already loaded

I was developing a website via localhost, everything was working well, but I just uploaded the website online, everything else seems to work well except this sticky message below my footer :
`
A PHP Error was encountered
Severity: Core Warning
Message: Module 'mysqli' already loaded
Filename: Unknown
Line Number: 0
Backtrace:
`
Its showing line number 0, I have no idea what this means. If this can be fixed, How? and if so, is the problem from my side or my hosting providers?
Follow these steps:
1) Controller class name should start with capital.
2) Filename name should start with capital.
Because Linux is case sensitive.

Fatal error: Class 'CI' not found after uploading to live server

I have a project built in Codeigniter 3 + HMVC. And Im almost done with it.
In my local copy it is working properly. But when I moved my project on a live server I got this error:
Fatal error: Class 'CI' not found in /var/www/vhosts/kuni.ph/httpdocs/teradasys/application/third_party/MX/Modules.php on line 92
A PHP Error was encountered
Severity: Error
Message: Class 'CI' not found
Filename: MX/Modules.php
Line Number: 92
Backtrace:
And here's the code on line 92
/* find the controller */
list($class) = CI::$APP->router->locate(explode('/', $module));
I dont know what is the error all about.
I also checked the config.php and update the base_url. And I also updated the database config.
Can you help me with this?

Error integrating Google Analytics in PyroCMS

There was no error before i filled up the Google Analytics Setting in the Integration option of Setting menu in Admin Panel.
When I submitted the form after filling up the Google Analytics Setting and went to Dashboard, the following error occurred and the graph is not displaying in the Dashboard.
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: http_response_header
Filename: libraries/Analytics.php
Line Number: 424
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: http_response_header
Filename: libraries/Analytics.php
Line Number: 427
Please help me with this.
Google analytics uses CURL. In a shared hosting CURL might be disabled, So such problems are likely to occur.

UAgent CodeIgniter Library Installation Errors

The codeigniter library, UAgent, is giving me errors on installation. Here is the error:
A PHP Error was encountered
Severity: Warning
Message: Missing argument 1 for Shared_Framework::__construct(),
called in /system/libraries/Loader.php on line 928 and defined
Filename: libraries/Shared_Framework.php
This happens when I execute the following code:
$this->load->library('Shared_Framework');
$this->load->library('Uagent');
This is what the manual says to do but I can't figure out how to fix the error. Here is the link to the library just in case: http://www.vvvlad.com/resources/uagent
The constructor requires that you pass a parameter, just load the library like this instead:
$this->load->library('Shared_Framework',$params);

Problem with passing data to view in codeigniter code

I have a codeigniter code that is working on local Apache installation. But it does not work on Godaddy Hosting.
I have got other similar views and controllers which are working on Godaddy.
Following is the code. I have pasted only relevant code.
Controller:
function index() {
$this->load->model('Feedmodel');
$data['posts']=$this->Feedmodel->gethomedata();
$this->load->view('home',$data);
}
View:
PHP CODE ONLY
foreach($posts as $post){
echo $post['url'];
}
The error that I am getting is
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: posts
Filename: views/home.php
Line Number: 59
A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: views/home.php
Line Number: 59
The same code is working fine with other controllers and views...
The reason that you are getting an error notice in the GoDaddy environment and not in your local installation is most probably because of different error reporting in the two php installations. Edit your local php.ini and index.php in the root codeigniter dir and verify that error_reporting(E_ALL); exists.
Also are you using the foreach loop to iterate through all the HTTP POST variables? if so try changing it to
foreach($_POST as $post){
echo $post;
}
you could also use codeigniter's input library to do this.
$post_url = $this->input->post('url');

Categories