[solved] Testing CMSMS site on XAMPP won't work

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Guido
Forum Members
Forum Members
Posts: 221
Joined: Sat Aug 29, 2009 3:00 pm

[solved] Testing CMSMS site on XAMPP won't work

Post by Guido »

Hi,

I have a fully functional CMSMS site and want to make a test-environment on my own PC. I installed XAMPP 1.5, switched it to PHP4, imported my MySQL database and copied the site into the htdocs. Then I altered the config.php to match the http://localhost/blabla.

The admin panel seems to work, but the site doesn't. I get two errors. I've checked the CGExtensions file for absence.
These are the errors:


string(113) "Smarty error: [in tpl_top:23 line 1]: [plugin] unknown tag - 'process_pagedata' (core.load_plugins.php, line 124)"

and

Fatal error: Call to undefined function: smarty_cms_function_process_pagedata() in C:\server\xampp\htdocs\cbx\tmp\templates_c\%%25^25E^25E0F81D%%tpl_top%3A23.php on line 5

I've checked the file mentioned in the second error and replaced the old server address with the htt"://localhost/blabla again, without success. It seems to be something about the process_pagedate function but hours of search on the net couldn't help me.
Last edited by Guido on Wed Sep 02, 2009 4:00 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Testing CMSMS site on XAMPP won't work

Post by calguy1000 »

I'll bet you didn't completely follow the instructions for moving a site.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Guido
Forum Members
Forum Members
Posts: 221
Joined: Sat Aug 29, 2009 3:00 pm

Re: Testing CMSMS site on XAMPP won't work

Post by Guido »

No I didn't. I never thought it would have any influence.

What could be the problem? Something like clearing the cache?

And now suddenly the admin won't work proper either, I get:

ERROR: The CGExtensions module could not be found.

And a bunch of headers that couldn't be sent or have already been sent.

This worked fine untill I rebooted my PC
Last edited by Guido on Sat Aug 29, 2009 5:21 pm, edited 1 time in total.
replytomk3

Re: Testing CMSMS site on XAMPP won't work

Post by replytomk3 »

Can you get the default site running on xampp?

What modules did the imported site use?

I have ran cmsms on xampp several times before. you can email me step by step progress.

Also, my site documents what to backup for transfer http://mkrd.info/software-discussions/cms-made-simple/backin-up-and-restoring-cmsms.html.
Guido
Forum Members
Forum Members
Posts: 221
Joined: Sat Aug 29, 2009 3:00 pm

Re: Testing CMSMS site on XAMPP won't work

Post by Guido »

Yeah XAMPP is running fine, first I installed the newest version which had PHP 5.3. That gave a bunch of errors due to a single missing & sign that PHP 5.3 didn't get. I found out CMSMS didn't support PHP 5.3 so I downloaded XAMPP 1.5 with which you could switch to PHP4. A lot of the errors disappeared, but the ones listed aboce still remained. I found some one else on this forum that had the same problem, but he had forgotten to set his domain name to .com. I modified my config.php on my hard drive to http://localhost/cbx everywhere the original domain name was.

I have installed all the standard modules, and added stiemap made simple (and CMextensions because 'sitemap made simple' depends on it).

Exporting and importing the database went fine as far as I can tell. The name is the same, and everything seems to be there. Maybe I'll drop the database and import it again just for the sake of it.

I really don't get why this couldn't work, but I'll get into your steo-by-step now.

-UPDATE-

I checked only now if the CGextensions dir was present in the modules dir and it was. I checked if it had been set to read-only and it was, so I unchecked it, but when I look again read-only is on again.

Thanks
Last edited by Guido on Sun Aug 30, 2009 11:49 am, edited 1 time in total.
User avatar
fatlizard
Forum Members
Forum Members
Posts: 71
Joined: Thu Jun 18, 2009 1:24 pm

Re: Testing CMSMS site on XAMPP won't work

Post by fatlizard »

I use XAMPP for all my local work.

My version is 1.7.1 which includes PHP Version 5.2.6, and this runs CMSms without a problem.

Transferring between sites is also readily done, and there should be no need to drop and then import the database.
Clear out the cache (just delete the files)
Make sure all the entries in the config.php reflects the site's new location, and any path/directory locations.

If you're moving a site to your local machine, local folder permissions are not an issue, although this is extremely important if going the other way round for the first time., ie., developing locally, and transferring the directory structures to a remote server for the first time - then you MUST make sure some folder permissions are set correctly.

Should be a 5 min. job, 10 if you go make a coffee in the middle.


Fat Lizard
Guido
Forum Members
Forum Members
Posts: 221
Joined: Sat Aug 29, 2009 3:00 pm

Re: Testing CMSMS site on XAMPP won't work

Post by Guido »

I know, I did prepare this site on a different server, then downloaded it via FTP, and uploaded again to it's permanent address. I renamed all the old domain names in config.php to the new domain, altered the MySQL data and it worked fine. Now I want to make a local working copy to test stuff and upgrades befores messing it up on the permanent address. I'll try it from scratch another time, and if that doesn't work, I'll upgrade my XAMPP version.

-NOTE-

If I rename the module dir to module1, the CGExtensions error disappears....

And should my config.php contain / slashes or \ slashes in the root reference? It gets a bit confusing sometimes...
Guido
Forum Members
Forum Members
Posts: 221
Joined: Sat Aug 29, 2009 3:00 pm

Re: Testing CMSMS site on XAMPP won't work

Post by Guido »

Yet again it failed. Let me give you a complete routine of what I did:

1. I uninstalled the old XAMPP by using their own uninstaller.

2. I downloaded and installed version 1.7.1

3. I used firezille to download a copy of my site

4. I then copied that to the XAMPP/htdocs folder (in a subfolder called cbx)

5. I started XAMPP via localhost, opened phpmyadmin, imported the MySQL database from my hard drive backup made today.

6. I opened config.php in my htdocs/cbx folder and altered the database entries to 'localhost' and my local user and password. Left the database name the same.

7. I looked for everywhere that said http://www.cbx-nederland.nl and changed it to http://localhost/cbx leaving the subfolders intact.

8. I went to the tmp/cache and deleted all three files in there (one of which was an empty index.html).

9. I went to http://localhost/cbx and got:

string(113) "Smarty error: [in tpl_top:23 line 1]: [plugin] unknown tag - 'process_pagedata' (core.load_plugins.php, line 124)"
Fatal error: Call to undefined function smarty_cms_function_process_pagedata() in C:\xampp\htdocs\cbx\tmp\templates_c\%%25^25E^25E0F81D%%tpl_top%3A23.php on line 5

10. I went to my admin panel and got:

ERROR: The CGExtensions module could not be found.

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\cbx\modules\SiteMapMadeSimple\SiteMapMadeSimple.module.php:35) in C:\xampp\htdocs\cbx\admin\login.php on line 313

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\cbx\modules\SiteMapMadeSimple\SiteMapMadeSimple.module.php:35) in C:\xampp\htdocs\cbx\admin\login.php on line 314

Below that I saw the admin, so I could log in but it was all screwed up....
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Testing CMSMS site on XAMPP won't work

Post by Dr.CSS »

You may find that running install and at step 5 DON'T CREATE TABLES OR INSTALL DEFAULT CONTENT helps as it will correct any path problems and install all modules in module folder...
replytomk3

Re: Testing CMSMS site on XAMPP won't work

Post by replytomk3 »

1) Does installing a fresh copy or CMSMS with default pages on xampp work?

2) What are you copying at your step 3? All files? If you are then this is the problem. What you need to copy is http://mkrd.info/software-discussions/cms-made-simple/backin-up-and-restoring-cmsms.html and NOTHING MORE

3) Clear cache before database export.

4) Actually, you do not need to copy over any files at all. Get the default cmsms website running, and ONLY THEN go into config.php and change the database to the backup. You should then have most of the functionality of your site (without uploads folder, modules, and the like). ONLY THEN do you bring over the files that I describe on your website.

Easy steps, no need to overthink anything.
Guido
Forum Members
Forum Members
Posts: 221
Joined: Sat Aug 29, 2009 3:00 pm

Re: Testing CMSMS site on XAMPP won't work

Post by Guido »

OK thanks,

I was thinking in a similar direction. So if I understand correctly, my actual site is stored in the database and uploads folder only?

I will try these steps as soon as I get home.
replytomk3

Re: Testing CMSMS site on XAMPP won't work

Post by replytomk3 »

Your site consists of only the database, the uploads folder, the modules, config file, and several other smaller pieces that I have documented on my website. Moving any other files will very likely give you errors, both path ones, as well as possible ftp transfer errors.
Pierre M.

Re: Testing CMSMS site on XAMPP won't work

Post by Pierre M. »

Am I the only one who need System Info (or at the very least CMSms version) to figure out something ?-)

Pierre M.
replytomk3

Re: Testing CMSMS site on XAMPP won't work

Post by replytomk3 »

Pierre M. wrote: Am I the only one who need System Info (or at the very least CMSms version) to figure out something ?-)
Yes. Everyone else either engages in mind reading, or if there is a lack of such skill, guessing.
Guido
Forum Members
Forum Members
Posts: 221
Joined: Sat Aug 29, 2009 3:00 pm

Re: Testing CMSMS site on XAMPP won't work

Post by Guido »

OK, so now I've got it running by:

- installting a fresh copy of CMSMS 1.6 on my localhost.
- NOT installing new database, but referring CMSMS to my localhost copy of my online site.
- Replacing the uploads folder with my own.
- Maybe I need to install some modules I don't know yet.

I wanted to do this so I could test upgrading to 1.6.3 and try out pretty URL's without messing anything up online.

Never guessed almost everything was stored in the database. Thanks for all your help.
Post Reply

Return to “CMSMS Core”