PHP Error, Warning or Notice.

learn more… | top users | synonyms

0
votes
2answers
6 views

Strict Standards: Non-static method spController::getLang() should not be called statically

I have this function: <?PHP function T($w) { $method = $GLOBALS['G_SP']["lang"][spController::getLang()]; // LINE 2 if(!isset($method) || 'default' == $method){ return $w; ...
0
votes
1answer
28 views

Non-static method DB::connect() should not be called statically

Recently upgraded our server to 5.4 and started getting the following error Non-static method DB::connect() should not be called statically I've researched this up & down, and every solution ...
0
votes
3answers
49 views

PHP - Require or Include doesn't work inside loops?

I'm trying to loop through a list of paths and require those PHP scripts using a foreach loop. However I get this error: Warning: require_once(/opt/lampp/htdocs/framework): failed to open stream: No ...
0
votes
2answers
46 views

CodeIgniter - Call to a member function model() on a non-object [duplicate]

I have a login form that is being created in the view. Then in my controller I'm trying to load my model but it doesn't seem to load. Looked up a few answer here on stackoverflow and almost everybody ...
0
votes
0answers
12 views

Some PHP errors/notices not displaying call stack information within Slim Framework

I'm using the Slim Framework. Most PHP errors in my application output normal PHP error messages Example code with an error that outputs the Call Stack: echo 'missing semicolon at eol' Error ...
-1
votes
0answers
52 views

Parse error: syntax error, unexpected T_IF in /homez.743/oliviaro/www/wp-content/themes/Diavlo/functions.php on line 235

I'm trying to resolve a syntax error that is causing a wordpress site not to display. I'm not a php developer, so this is all new to me, and I'm caught between a rock and a hard place. It says ...
2
votes
1answer
44 views

Why does missing “require” / “include” call error_handler an extra time?

I have a custom error handler set up using set_error_handler. When I tried to include a file that doesn't exist, PHP calls error_handler one more time than it should: <?php error_reporting(E_ALL | ...
-1
votes
0answers
41 views

How to process xsd file by PHP [closed]

I'm new to learn XML and need to use a XSD file to create a database by PHP. Now I just try to: Load a XSD file into PHP Display the root element name But it displayed the error: Notice: ...
0
votes
2answers
48 views

OOP PHP - Passing methods trough functions [duplicate]

I am new to OOP in PHP and I am trying to understand how it work. I am trying to implement PDO into a my own class. This is what I am doing: class db { private $options; function ...
0
votes
0answers
26 views

call to a non-object in view on cakephp [duplicate]

I'm just beginning to study cakephp to build web applications and I have very limited knowledge at now. I am following an example of a book, consisting of a login page to connect. I build models, ...
-1
votes
1answer
27 views

Codeigniter Insert Data [duplicate]

My Controller: class Page extends CI_Controller {} public function add() { // $this->input->post('title') $models = $this->load->model('Page_Model', 'page'); echo ...
4
votes
2answers
53 views

traverse XML tree to get attribute value

This is my XML (snippet): <?xml version="1.0" encoding="utf-8"?> <test> <body label_position="left"> <page number="1"> <itemset name=""> <item ...
0
votes
3answers
27 views

How to use model object in Yii Controller and View

I have following method: public function actionIndex() { $companyModel = Company::model()->findAll(); $supplierProductModel = SupplierProduct::model()->findAll(); ...
0
votes
0answers
16 views

PHP 5.4 error 500 not captured in log file

I upgraded from php 5.2.17 to 5.4 and after hours of tweaking i finally got it working. Now I'm having issue with error reporting. I set error_reporting = E_ALL and log_errors = On which logs to ...
1
vote
0answers
39 views

taskkill windows command prompt not killing all processes php

I am running Windows 7 64bit for WAMP 2 server. I am running my program from batch script using Windows Com Component for ex: C:\wamp\bin\php\php5.3.13\php.exe C:\wamp\www\test\command.php $WshShell ...

1 2 3 4 5 50
15 30 50 per page