Prabhu Bakiyaraj Chelladurai
Forum Replies Created
-
Forum: Plugins
In reply to: [WP MVC] WP MVC Validation of form fields generates error without descriptionThe create_or_save() function is added to admin_controller of every model to validate the fields.
I don’t know whether this is the only available solution, and is legal, but the issue is solved as of now.
This method is in contrast to the policy of ‘code-reusability’ and until an alternate solution is created, I am left, but noway, to follow this method.
Thanks all.
Forum: Plugins
In reply to: WP MVC Validation of form fields generates error without descriptionThanks James Huff.. Nice suggestion… Will follow that…
Forum: Hacks
In reply to: WordPress Fatal error: require(): Failed opening requiredIssue solved. Simple error made a lot of fuss.
In views/admin/ folder, there is a folder for the model GeozoneRule in the name ‘geozonerules’ and it was renamed to ‘geozone_rules’. Now it is ok.
Naming of folders and files needs careful attention.
Thanks folks.
Forum: Fixing WordPress
In reply to: WP MVC : Loading helper doesn't workIssue resolved by loading the helper in admin_controller instead of public controller.
Thanks to all.
As this issue is resolved, i am closing this thread.
Issue resolved like this: The function
public function show() { $this->load_helper('geozone'); $this->set_object(); }
in public controller is shifted to admin controller and function name is changed to index() like this:
public function index() { $this->load_helper('geozone'); $this->set_objects(); }
Thanks for everyone who tried to solve this.
Forum: Fixing WordPress
In reply to: You do not have sufficient permissions to access this page.I solved this for myself.
The reason i got this error was because i have added a custom menu in bootstrap.php and it was in conflict with the permissions. I just removed the unwanted menu item and the error was no more.
to be more clear,
I have a custom menu in my bootstrap.php like this:
MvcConfiguration::append(array( 'AdminPages' => array( 'countries' => array( 'in_menu' => true, 'parent_slug' => 'mvc_mystores' ), 'mystores' => array( 'countries', 'currencies', 'zones' ) ) ));
in the above code, the following lines served no purpose but was promptly generating error message which is our topic of discussion:
'countries' => array( 'in_menu' => true, 'parent_slug' => 'mvc_mystores' ),
I just removed that.
Now its okay.
Thanks everyone.
Forum: Fixing WordPress
In reply to: Please help…..I don't see my plugins@seniorguide
Simply copying plugins and pasting them may sometimes not work.Try unzipping an archieve file in the plugins folder or create a folder in the plugin name manually and copy the cotents of the folder thereafter.
If it still not working, don’t worry.
Do the same for all files and folders inside your plugin folder.
It should work. It happened to me.
Good Luck.
Forum: Fixing WordPress
In reply to: Please help…..I don't see my pluginsHow did you install your plugins? Just copied and pasted them from somewhere or you created them youself?
Forum: Fixing WordPress
In reply to: WordPress comment php error since upgrade to 3.9replace this: mysql_real_escape_string()
with this: esc_sql()
Forum: Plugins
In reply to: [WP MVC] Just to make sure… WPMVC does not work with WP4, right?Of course, this is a good facility to make use of.
Thanks @george
issue resolved. Model names mismatch. Thanks.
Forum: Plugins
In reply to: [Easy Contact Forms] Incompatible with WordPress 3.9 and PHP 5.5@nextscripts: your solution really worked for me… thanks a lot… ??
Forum: Fixing WordPress
In reply to: WordPress comment php error since upgrade to 3.9neither this : <?php ob_start(); ?> in first line of functions.php
nor this : ?> at the end pf wp-config.php
helped me….any other random suggestion? i am running WP 4.0
Forum: Plugins
In reply to: [WP MVC] Just to make sure… WPMVC does not work with WP4, right?hraban,
I got your problem and solved.
The reason is, if you have events-calendar-example plugin and venuelisting plugin simultaneously, then you will certainly encounter the problem because both the plugins have tables in the name ‘venues’ in the database and the scaffold will generate the code in admin_venues_controller.php by defining: “class AdminVenuesController extends MvcAdminController”.
This is again done for the other plugin also.
thats why the redeclaration error.
Just remove any one plgin and you will get rid of this error.