HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Problems with import

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#31278 (In Topic #7146)
Avatar

Community saint

I was trying to import things from the old instance of ocp to the new one, but I always get the same answer:

Parse error: syntax error, unexpected '&' in /home/clients/testas.klajoklis.lt/public_html/testas/sources
/zip.php on line 82
Back to the top
 
Posted
Rating:
#31281
Avatar

Sorry about this,

It looks like your PHP version is having trouble with the file. Please change like 82 of that zip.php file from:

Code

      $out.=&$file['data'];
to:

Code

      $out.=$file['data'];

I can see why the problem would occur, but it seems to only happen on certain PHP versions.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#31309
Avatar

Community saint

I have changed it. And now I get this line:


Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 46080 bytes) in /home/clients/testas.klajoklis.lt/public_html/testas/sources
/hooks/modules/admin_import/ocp_merge.php on line 1362
Back to the top
 
Posted
Rating:
#31310
Avatar

Hi,

Do you have a very large number of catalogue categories? The import is running out of memory when trying to import them.

Please try placing a file named .htaccess inside the adminzone directory (i.e. adminzone/.htaccess, containing the following:

Code

php_value memory_limit "128M"

This will increase the memory limit for the Admin Zone, but won't affect the rest of the website.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#31316
Avatar

Community saint

I am just trying to import something simple - like users (some 10 of them) or forum posts. And only one option at once. So it shouldnt take lots of memory. Or is this a case?
Back to the top
 
Posted
Rating:
#31321
Avatar

It shouldn't, but PHP is quite memory-inefficient in how it stores data, and PHP and ocPortal together have a base cost in terms of the memory they use just to get running. It doesn't take much to push things over the limit.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#31464
Avatar

Community saint

After I created it, I just couldnt open any page in the  admin:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, …….. and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Back to the top
 
Posted
Rating:
#31494
Avatar

Hi,

I'm sorry to hear that.

If you'd like us to do a merge import for you, please post FTP details in a support ticket, along with any details that need to be put into the form fields on the import screen (db passwords, etc). We'll make sure we perform any memory optimisations necessary to make it finish.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: