Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to preview of imported page #9

Closed
ayeon opened this issue Aug 24, 2010 · 4 comments
Closed

Error when trying to preview of imported page #9

ayeon opened this issue Aug 24, 2010 · 4 comments

Comments

@ayeon
Copy link

ayeon commented Aug 24, 2010

I've migrated one website (MODx 0.963) with provisioner(v1.6), but getting error when I tried to view any page:

Fatal error: Cannot pass parameter 1 by reference in
C:\test\modx\core\model\modx\modx.class.php on line 2237

These are the steps I took:

  1. I followed the instructions. Everything is OK except importing files. So manually copied files under assets directory of old site to new site (/assets/components/provisioner/imports).
  2. Changed index.php under root to swich to new context "provisioner"
    ** commented out the following line
    //$modx->initialize('web');
    ** add the following line
    $modx->initialize('provisioner');

Can you pls help me to figure out the problem? I am new to MODx and need to upgrade the site. I've tried migration several times but no avail. After migration, should I do something else to make the site work?

Thanks in advance

@shamblett
Copy link
Owner

Hi ayeon,

File import has a bug in the beta6 issue that has been fixed, see issue 7, what I suggest you do is the following :-

  1. Force remove your Provisioner install so we start from a clean base.
  2. Re-install provisioner
  3. Get the file /core/components/provisioner/model/provisioner/provisioner.class.php from
    here and replace the on in your install(/core/components/proviosoner.....) with this one.
    This will get file import working.
  4. Import your files from the remote site, Provisioner will put these in its import directory as you say, from there you must use the local revo file manager or manual tools to move them where you want them in your local file hierarchy.

At the mo only ascii files are imported correctly, binary files such as gif files will probably fail with a '0 length' error. This is known but not fixed yet.

You don't need to touch index.php or anything else.

Hope this helps.

@ayeon
Copy link
Author

ayeon commented Aug 25, 2010

Thank for quick reply.

The error in file import wasn't my concern at this moment. Everything imported thru Provisioner was located under "provisioner" context. If I create a document(webpage) with simple text only under "provisioner", and select "preview", then the fatal error occurs.

Finally I seem to avoid the error though. I simply set 0 to "haskeywords", "hasmetatags" fields in modx_site_content table. They were set to 1 if I create any document under "provisioner" context. I don't know the details but now I can view my page without error thru web browser.

Thanks again for all the support.

@ayeon
Copy link
Author

ayeon commented Aug 25, 2010

Sorry. Now I understand better. Somehow the records from the tables modx_site_keywords, modx_site_metatags weren't imported to the new db. This causes the error. :)

@shamblett
Copy link
Owner

Yes, correct, this doesn't happen, there is an issue already raised about importing associated data with a resource, I'll leave this open and see what we can do here with meta tags and keywords.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants