how to solve the following error in symfony - symfony1

I created a new module and database in an existing symfony website. My database name is planbook. The following error came up. Please anybody help me.
[23-Mar-2012 01:34:01] Couldn't find class planbook
[23-Mar-2012 01:34:01] PHP Fatal error: Call to a member function evictAll() on a non-object in /home/whatplan/public_html/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php on line 1239
[23-Mar-2012 01:35:50] Couldn't find class Planbook
[23-Mar-2012 01:35:50] PHP Fatal error: Call to a member function evictAll() on a non-object in /home/whatplan/public_html/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php on line 1239

Have you tried symfony cc?

Related

In xcode(13.2.1) 'po' command is not working

I added a breakpoint & try to run the 'po' command but it is not working at all. It is not working at any scope, any other controller, or any other project also. It gives me the below error.
po viewModel.scanResult.gender
error: <EXPR>:2:11: error: cannot find type '$__lldb_context' in scope
extension $__lldb_context {
^~~~~~~~~~~~~~~
error: <EXPR>:19:5: error: cannot find '$__lldb_injected_self' in scope
$__lldb_injected_self.$__lldb_wrapped_expr_1(
^~~~~~~~~~~~~~~~~~~~~
'v' also not working at all. Please see bellow code.
v viewModel.scanResult.gender
error: no variable named 'viewModel' found in this frame
Is anyone helps me out?

What is the purpose of foundation.dart in Writing and Reading Files using path_provider plugin?

I am trying to understand how to read and write data on text files using path_provider plugin.
I've read an example on how to use it on Flutter from here. Then I saw this line of code which I don't understand:
import "package:flutter/foundation.dart";
I tried to comment it out from the code and ran "flutter run":
//import "package:flutter/foundation.dart";
And to my surprise, it ran perfectly. Although it raised some errors like:
E/DartVM (23127): 'dart:core/runtime/libintegers.dart': error: Unexpected tag 0 (Nothing) in ?, expected expression
E/DartVM (23127): ../../third_party/dart/runtime/vm/compiler/intrinsifier.cc: 153: error: Intrinsifier failed to find method ~ in class _Smi
and
E/DartVM (23237): 'dart:typed_data': error: Unexpected tag 15 (DirectPropertyGet) in ?, expected type
E/DartVM (23237): ../../third_party/dart/runtime/vm/compiler/intrinsifier.cc: 153: error: Intrinsifier failed to find method get:x in class _Float32x4
But it ran well. I don't know why. When should I use it? What method from the code did the foundation.dart was used?
I would appreciate any kind of enlightment. Thanks in advance.
[UPDATE]
I think I understand why foundation library was used in the example code. Maybe because the example code used the "required" constant from the foundation library.

PrestaShop installing theme error

When i try to install new theme both from ftp and my computer im getting following error:
Warning: Error while sending QUERY packet. PID=89741 in
/home/fansport/public_html/fansportsklep.pl/classes/db/DbPDO.php on
line 91
Catchable fatal error: Argument 2 passed to
ObjectModelCore::hydrateCollection() must be of the type array,
boolean given, called in
/home/fansport/public_html/fansportsklep.pl/classes/PrestaShopCollection.php
on line 358 and defined in
/home/fansport/public_html/fansportsklep.pl/classes/ObjectModel.php on
line 1495
I dont have any idea what is wrong.
Check "max_allowed_packet" in MySQL and increase the value. That could solve the problem.

Fatal error: Call to a member function IPP() on a non-object in QuickBooks/IPP/Service.php on line 417

I downloaded https://github.com/consolibyte/quickbooks-php to a php server. Then I filled out docs/partner_platform/example_app_ipp_v3/config.php with the developer keys and put in a mysql database credential. As soon as I ran the docs/partner_platform/example_app_ipp_v3/example_customer_add.php script in my browser, I get the error
Notice: Undefined variable: Context in /var/www/docs/partner_platform/example_app_ipp_v3/example_customer_add.php on line 54
Notice: Undefined variable: realm in /var/www/docs/partner_platform/example_app_ipp_v3/example_customer_add.php on line 54
Fatal error: Call to a member function IPP() on a non-object in /var/www/QuickBooks/IPP/Service.php on line 417
What did I do wrong? How do I correct this problem?
I believe the only way this can happen is if you didn't actually connect to QuickBooks yet.
Did you visit the index.php script to actually connect to QuickBooks prior to visiting example_customer_add.php?
Does index.php say that you've successfully connnected to QuickBooks?
For the record, I had a similar problem. The error occurred when I did an action with the API, from inside of a function. I.e.:
function foo () {
$CustomerService->query($Context, $realm, ...
...
The problem was the global variables $Context and $realm were not accessible from inside the function, you need to use global to import before using them.
global $Context, $realm;

Unknown record property / related component "permissions" on "sfGuardUser"

I'm having a weird problem with my symfony backend. I can log in once, but after that I get
Unknown record property / related component "permissions" on "sfGuardUser"
Also, when I do login and try to edit a record from any module, I get
Fatal error: Call to a member function setLabel() on a non-object in plugins/sfDoctrineGuardPlugin/lib/form/doctrine/base/BasesfGuardUserAdminForm.class.php on line 28
Please help!
I found the problem. I had to delete all SFGuard Forms from lib/form/doctrine/base and reinstall.
Reinstalling did not help me. After all, this is a new install.
I had to modify the lines in /plugins/sfDoctrineGuardPlugin/lib/form/doctrine/base/BasesfGuardUserAdminForm.class
//Fatal error: Call to a member function setLabel()
if(isset($this->widgetSchema['groups_list']))
{
$this->widgetSchema['groups_list']->setLabel('Groups');
}
if (isset($this->widgetSchema['permissions_list']))
{
$this->widgetSchema['permissions_list']->setLabel('Permissions');
}
in order to get to the next error
of
Unknown record property / related component "permissions" on "sfGuardUser"

Resources