Now getting 'Database is not installed.' But backend working OK so is in calling page - advice pls!

geoffd / 2013-10-01 13:34:25   

Hi all
Support told me to post in the forum so here goes...
My site is still working in the old version (ie, is live)
The new cms2 is also working, as follows:

I h'Database is not installed.'ave the backend of CMS2 half working (get there by logging in to it)

(It updates the section name, Preview opens ok, but Upload images is not working at all, just shows it in list but no upload).

If I use the index.php
changed to use ndxzsite (not ndxz-site) for cms2, it says

'Database is not installed.'

Yes the backend of cms2 is working so db is working.
But the calling url is adjusted, and config.php is the new one (which was missing a end php tag, does that mean it has crashed?

This is the cms2 config.php
-------------
as expected - I added this is and uplaoded, no effect. But why is it missing?

The calling page does not generate the error msg.
This is the calling page index.php
---------------------------------------------

geoffd / 2013-10-01 13:38:59   

Sorry this post got messed up, I added some php code, perhaps not allowed.

This is what it should say:
----
Hi all
Support told me to post in the forum so here goes...
My site is still working in the old version (ie, is live)
The new cms2 is also working, as follows:

I have the backend of CMS2 half working (get there by logging in to it)

(It updates the section name, Preview opens ok, but Upload images is not working at all, just shows it in list but no upload).

If I use the index.php
changed to use ndxzsite (not ndxz-site) for cms2, it says

'Database is not installed.'

Yet the backend of cms2 is working, so db is working.

But the calling url is adjusted, and config.php is the new one (which was missing a end php tag, does that mean it has crashed?

This is the cms2 config.php
It is exact same as cms1, plus a line at end

define('PX', 'ndxzbt1_');
-------------
But it had no end php tag, so I added this is and uploaded, no improvement.
(But why is it missing? Has the upgrade script crashed?

The calling page does not generate the error msg.
This is the calling page index.php
---------------------------------------------
This was stopped in the display, so basically, any tips welcome.
Thanks
Geoff (in UK not Malaysia btw)

arsondpi / 2013-10-01 17:33:14   

[I'm closing the other thread so people won't get confused]

So uploading images and a "database is not installed" error is the issue.
A few things to check:
1. verify your folder and files permissions. Your host may not allow 777 but 755 or 644. Simply ask them (indexhibit.org/forum/thread/17164/).
2. Are you using Firefox to upload images? If so, try uploading with a different browser - currently there's a bug in the uploader. Vaska is on it...

* there's nothing wrong with your config.php
Again check your folder/file permissions...

geoffd / 2013-10-01 20:06:28   

Thanks ! I will check this out tomorrow...

geoffd / 2013-10-02 09:05:48   

Hi
I used IE on Win 8 and the Uploader doesn't do anything at all - just opens the panel, none of the buttons work. Not even Cancel...
Chrome works OK.
Please mention that in the Help.

Vaska A / 2013-10-02 09:09:39   

I don't believe IE 8 is supported - if I didn't add that to the requirements list I'll do so shortly.

geoffd / 2013-10-02 09:37:20   

Hi
I am testing cms2 within the edit environment, I will look at deployment (the live cms2 db links) later (as I have cms1 still live).
In Use...
I am adding a block of text to a small white spacer image, to get a page of 'normal' text before the main images.
The white spacer has to be 600px wide to match the css setting, the text wraps to that width; the left column on title text is controlled by css also, that can be edited.
But no nav for the other images in the exhibit - they are not showing at all.
This seems like a rebuild... I must say this is not an Upgrade that works too well, I am one day in, on client time, and nothing to show yet. I am doing all this to get the normal text page at start of an exhibit (set of images). Phew!

Vaska A / 2013-10-02 09:57:35   

What? I don't even understand what you are talking about...

And you can post a url.

Vaska A / 2013-10-02 14:06:44   

We're here to help...

Your problem is likely quite minor.

geoffd / 2013-10-02 20:14:33   

Yes I agree, minor as I have a working v2 and v1, just many tweaks, I think you are right though (as in instructions) a new install and rebuild might be quicker in most instances.
After this v2, I assume future upgrades will be like Wordpress, ie, fairly background.
Thanks for the hlp
Geoff

Vaska A / 2013-10-02 20:50:21   

Correct, future upgrades will not be this difficult. I knew long ago that v1 to v2 would be hard which is part of the reason I did not release so many updates before v2.

Most v2 updates will be as simply as replacing the ndxzstudio folder and that's it. And later, I want to do automatic updates but that is not near the top of the list right now.

geoffd / 2013-10-03 13:11:26   

Hi
just started the v2 deployment, I have the new index.php all OK

Exhibit formats: I am following the instructions to edit the format php files, using Grow as shown.
class Exhibit
{
$OBJ->page->exhibit['dyn_css'][] = $this->dynamicCSS();
$OBJ->page->add_jquery('grow.vaska.js', 26);

}

This causes a php error:
Fatal error: Call to undefined method stdClass::add_jquery() ......line location...

This is on the js call.

Am I missing an address change? Is the class Exhibit set up ok (ie, the two OBJ are insid eit, and it contains all the code?

Sorry, I am not a php coder.
Thanks

geoffd / 2013-10-03 13:16:26   

I see in the completed example, Visual Studio, the new grow code is called by

$OBJ->page->add_jquery('jquery.ndxz_grow.js', 20);

I tried this instead on the code above, same error

Any tips most welcome as client site offline! Thanks

geoffd / 2013-10-03 13:20:13   

btw I have gone back to a 'new' format so I can still work; my need is a simple paginating image display with prev/next

All the old ones error as expected.

Thanks

geoffd / 2013-10-03 13:21:33   

Old format on all site was called Slideshow...

geoffd / 2013-10-03 13:28:39   

At top of Slideshow it says

// defaults from the general libary - be sure these are installed
$exhibit['dyn_css'] = dynamicCSS();
$exhibit['lib_js'] = array('jquery.cycle.all.js');
$exhibit['dyn_js'] = dynamicJS();
$exhibit['exhibit'] = createExhibit();

So that has to all be edited somehow into the new class.. tips very welcome as I am out of my depth here. Thanks.
PS client is a friend and I have no time to do the upgrade, is just to add a normal text page at start of each exhibit. 8-)

geoffd / 2013-10-03 14:09:20   

JUST FOUND BETA OF SLIDESHOW so I will use that and get back to you
Thanks

geoffd / 2013-10-04 13:54:17   

Hi Vaska, that is great, the provided slideshow code sorted out my problems. Thanks for all the help along the way.
You can delete this thread (or middle of it) if you want.

This thread has been closed, thank you.