Trouble with HMVC modular extensions for CodeIgniter - php

I've been developing locally on MacOS X Snow Leopard using PHP 5.3, CodeIgniter 2.0 and HMVC Modular Extensions. Everything has been working great.
Suddenly, for no reason I can pinpoint, I am occasionally getting this error when trying to bring up a page:
Unable to select the specified
database: app Filename:
/Library/WebServer/Documents/www/development/appdb/third_party/MX/Loader.php
Line Number: 96
The error doesn't occur at any specific place, it just seems to appear every 5-10 page loads or so. It usually goes away after a refresh, although sometimes I may need to refresh a couple of times.
Has anyone encountered this error before? Is it just some flakiness in mySQL on my Mac? (I also tried exporting the current DB and re-importing it under a different name and assigning that new DB, but the problem persists. I don't know of a way to test and "repair" a MySQL DB on a Mac.)
Thanks in advance for any help!
Gary

This is just an issue with your MySQL database. While I'm not sure what that issue is, HMVC has nothing to do with it.
The error comes from there as the loader is extended by HMVC, but no logic is changed. I'd fix up your database or install MAMP.

Related

Error when first launching symfony 4 project

I want to use Symfony 4.x for a new project, I have installed composer and used it to create a new project. My php version is 7.0.10 & I have wamp as well.
In this tutorial (https://symfony.com/doc/master/setup.html), it says after you run the server "Open your browser and navigate to http://localhost:8000/". When I do so, I get a No route found for "GET /" error.
the pictures bellow display what I get as an error more precisely :
as well as
I have installed everything following the guide on their official page. I have seen this problem being discussed on github (https://github.com/symfony/symfony-docs/issues/9178) but I don't understand their "quick fix" nor what they're talking about.
I want to know how to get my project running without that problem.
Thanks for any help
It’s strange but It’s totally normal and the error proved that Symfony is well installed
It’s not a « compile » or « configuration » error it’s just a logical error that means you don’t have route defined at
url / so keep learning and define a route (see doc and you see the result)

symfony2 "Erroneous data format for unserializing user entity" (FOS UserBundle)

I develop in symfony2 but am no sym2 wiz, brought in help to set everything up with the framework, and now it's throwing me a sudden error message I can't resolve.
I have two development environments, and one that I hadn't been using for a couple of months suddenly hit me with this error message upon trying to log in to my sym2 webapp locally:
"Erroneous data format for unserializing [user entity]"
I have not changed the code for logging in, I have not updated my vendors, and I have not changed any settings in MAMP (could it have updated itself though and done that?)
I don't understand what is going on.
I can google the error and I am suggested to hack one of the vendor source files. I would not know exactly what I would have done, so I am not comfortable with doing that just following some step-by-step instruction.
The application is running on symfony 2.3.9 and MAMP is set to PHP 5.6.27, the other option is 7.0.12 which produces the same error.
Ok, I changed my doctrine version to
"doctrine/orm": "~2.2,>=2.2.3,<2.5",
and it resolved the issue. Now I don't know what other issues THAT might have introduced seeing sym2 isn't always too backwards compatible, but fingers crossed =)

Mediawiki database error after update

I hope for some help on the problem I have trying to update my Wiki from 1.21 to 1.25. I,m don't have experience doing this but I followed the manual in Mediawiki doing this.
Create a new folder and put in the new fileset. Add the Images folder with content, moved the Localsettings.php from old to new. And renamed the folder to the right sitename. As result i get this:
a database query error has occurred. this may indicate a bug in the
software.
I'm a beginner and hope for some help, I read some things about using command-line scripts but don't know how to do that, maybe I forgot something in this actions.
I must get this update online soon because my hosting provider is going to use only PHP5.4 in 2 weeks what makes my current wiki stop working.
Thanks in advance.
Updating the database is a required step anytime you upgrade your MediaWiki version. If you cannot run SSH on the server, then you can use the web updater:
http://www.mediawiki.org/wiki/Manual:Upgrading#Web_updater
If this doesn't resolve the issue, try adding some debug code to your LocalSettings to get a real error message:
http://www.mediawiki.org/wiki/Manual:How_to_debug#SQL_errors

CakePHP Error: Database table acos for model Aco was not found

I have a Mac running Mac OS X Leopard at work as well as at home and a PC at work as well.
I have the project I'm currently working on set up on all 3, it works fine at my work computers but on my home Mac I get the error in the title. The project is on SVN so I just checked it out ran the SQL script for my DB schema and set up the same user I have in my work DB and it will not work still.
I also cleared out the cache folders as suggested in other posts with a similar problem and it still won't work.
Obviously I have checked the database table and it is present in my DB. Anyone have any other clues as to what might be happening?
In the end the error was in my database user configuration. It seems I forgot to set CRUD permissions to the user I use to access the database and that's what gave me the error
If you aren't in debug mode, I would suggest doing that to help troubleshoot. If it works in debug mode, then you've got some sort of caching issue. If it doesn't work in debug mode, my next question is - are your work computers windows? If so, I would look at case-sensitivity issues because Windows and Macs handle case differently.
Just encountered the same error. Table creation worked fine from the shell, so it seemed dubious that it wouldn't be able to read it afterwards.
In my case, the fix was to empty cache / tmp folder, as suggested on this french forum.

A question about duplicating Drupal installation on another server

I have hired a programmer overseas to develop a Drupal website for me and he has done a very good job (the site is installed at his server). I payed him and he sent me the Drupal files and the database .sql file.
Here is what I have done so far:
1- I have created a database on my server named something different from the database file he has sent me and imported the .sql file with no problem. (naming the database as the one he has used during development is not possible for me)
2- I have uploaded the Drupal files to the root of my domain.
3- I have modified drupal/site/default/settings.php and put my database information there and I have modified the $base_url variable there.
The problem is that when I access the website I get a white screen and nothing else (even when I click on show source on my browser, it is empty).
I tried to do the same on a localhost on both Mac and Windows using MAMP and WAMP respectively, and I got the same result (empty screen)
anybody has any suggestion about what seems to be the problem?
Best Regards,
Its a PHP WSOD error most likely. Do you have a way to check crash logs?
Have you looked at The White Screen of Death? Typically when faced with this issue and unable to quickly find the cause I return to this handbook page to go through the possible causes. Unfortunately this is a common symptom of many different problems and can be difficult to pin down.
if anybody has the same issue. Problem has been solved by adding the following line to the PHP settings.php file:
ini_set('memory_limit', '64M');
Thank you all for the help.

Categories