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.


Site went Blank after upgrading to ver. 8.1.2

Login / Search

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

Fan in training

Hi, I run the site www.kyutwo.com.  I've been using ocPortal to make a cms version of the site, and tried to upgrade to ver. 8.1.2.  Now, all pages show a blank white screen.  What do I do to fix this?  This error message pops up in the installation editor.

...and also, I just changed the home page to the old 'manual' design before using ocPortal so people can still use the old site while I fix the new one.  I'd appreciate the help.

This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
PHP ERROR [4096] Object of class ocp_tempcode could not be converted to string in sources/global.php(291) : eval()'d code on line 711 (version: 8.1.2, PHP version: 5.2.17, URL: /upgrader.php?type=misc)

Stack trace…

File -> '/home/kyutwo/public_html/sources/global.php(291) : eval()\'d code'
Line -> 689
Function -> 'die_html_trace'
Args -> array ( 0 => 'PHP ERROR [4096] Object of class ocp_tempcode could not be converted to string in sources/global.php(291) : eval()\'d code on line 711 (version: 8.1.2, PHP version: 5.2.17, URL: /upgrader.php?type=misc)', )

File -> '/home/kyutwo/public_html/sources/global.php(291) : eval()\'d code'
Line -> 985
Function -> '_fatal_exit'
Args -> array ( 0 => 'PHP ERROR [4096] Object of class ocp_tempcode could not be converted to string in sources/global.php(291) : eval()\'d code on line 711', )

File -> '/home/kyutwo/public_html/sources/global.php(291) : eval()\'d code'
Line -> 218
Function -> 'fatal_exit'
Args -> array ( 0 => 'PHP ERROR [4096] Object of class ocp_tempcode could not be converted to string in sources/global.php(291) : eval()\'d code on line 711', )

File -> '/home/kyutwo/public_html/sources/global.php(291) : eval()\'d code'
Line -> 859
Function -> '_ocportal_error_handler'
Args -> array ( 0 => 'error', 1 => 4096, 2 => 'Object of class ocp_tempcode could not be converted to string', 3 => 'sources/global.php(291) : eval()\'d code', 4 => 711, )

Function -> 'ocportal_error_handler'
Args -> array

File -> '/home/kyutwo/public_html/sources/global.php(291) : eval()\'d code'
Line -> 711
Function -> 'strpos'
Args -> array

File -> '/home/kyutwo/public_html/sources_custom/symbols.php'
Line -> 306
Function -> 'page_link_decode'
Args -> array

File -> '/home/kyutwo/public_html/sources/global.php(291) : eval()\'d code(1671) : eval()\'d code'
Line -> 1
Function -> 'ecv'
Args -> array

File -> '/home/kyutwo/public_html/sources/global.php(291) : eval()\'d code'
Line -> 1671
Function -> 'eval'

File -> '/home/kyutwo/public_html/sources/global.php(291) : eval()\'d code'
Line -> 154
Function -> 'evaluate'
Class -> 'ocp_tempcode'
Type -> '->'
Object -> object
Args -> array ( )

File -> '/home/kyutwo/public_html/upgrader.php'
Line -> 52
Function -> 'upgrade_script'
Args -> array ( )

Integrity check

If you think this problem could be due to corruption caused by a failed upgrade (e.g. time-out during extraction), check the following integrity check…

These files are outdated (you can find the correct versions in the manual installer ZIP for the version you're running):

  • site/pages/html_custom/EN/download_tree_made.htm
Back to the top
 
Posted
Rating:
#88930
Avatar

Hi,

Code

File -> '/home/kyutwo/public_html/sources/global.php(291) : eval()\'d code'
Line -> 711
Function -> 'strpos'
Args -> array

I think this is telling me you have sources/urls.php overridden. The override is likely outdated.

Code

File -> '/home/kyutwo/public_html/sources_custom/symbols.php'
Line -> 306
Function -> 'page_link_decode'
Args -> array

Again, an override. This time sources_custom/symbols.php. I am 95% confident this is the primary problem.

I'm not aware of these files being overridden in any ocProducts addons. Maybe you upgraded from an older line of releases and had installed fixes in override dirs in the past?


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:
#88933
Avatar

Fan in training

Yes.  I was using 6.1.1 and upgraded to 8.1.2.  I went back and removed some of the custom_files I made which helped some of the problems, but it seems I'm missing mySQL tables that weren't installed.  I could manually add them, but I don't know if its recommended.  I'm not a pro at programming so I need all the help I can get.
Back to the top
 
Posted
Rating:
#88937
Avatar

you should be able to go back to the upgrader and do 'upgrade database' (or whatever it is called – working off the top of my head). In theory if it failed due to overrides once, you can try again. Also the integrity check should help tell you what overrides you do have.


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:
#88949
Avatar

Fan in training

Okay, I've through the upgrader and it seemed to fix the problem.  After readjusting some custom_made pages, everything seems to work the way it should.  My only problem now is a weird syntax error I'm getting whenever I try to edit any gallery entry or download entry from its own display screen page.  It just keeps saying there's a missing bracket or parentheses when it loads the edit entry screen.  I had a similar problem before on the old version.  I think it had something to do with the 'redirect' part in the url.

---------------------------
An error occurred when loading this screen onto the web browser. You are being notified of this as you are staff. If you believe this is a bug in the website software, please contact ocProducts with full details. More details are available in your browser's error console. The error was: 1698: SyntaxError: missing ) after condition http://www.kyutwo.com/cms/index.php?page=cms_downloads&type=_ed&id=118
Back to the top
 
Posted
Rating:
#88950
Avatar

Take a look at line 1698 of the HTML and see if you can trace where it is – it'll probably be something of yours, but ocPortal brings up any Javascript errors so admins can see them clearly.


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:
#88959
Avatar

Fan in training

I checked the HTML code and found the syntax error, but it's not my coding.  It's in a piece of javascript coding pertaining to the delete entry field.

-----------
if (e e.checked=true;
-----------

I traced the code back to Line 37 in the default FORM_SCREEN_INPUT_RADIO_LIST.tpl.  I changed the code and made a custom version of the template, just to be sure not to overwrite anything sensitive.  So far the changes seem to work.

-----------
if (e.checked=true);
-----------


Just to check, I downloaded ocportal_manualextraction_installer-8.1.2.zip and opened up the default FORM_SCREEN_INPUT_RADIO_LIST.tpl in Adobe Dreamweaver and its also reading a syntax error.
Back to the top
 
Posted
Rating:
#88961
Avatar

Wow, you're right!

It should actually be

Code

if (e) e.checked=true;


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:
#91143
Avatar

Fan in training

Hello again.  My apologies on not replying before.  I did making the advised changes.  Ever since then I've been doing a lot of testing on the site.  I have come across some errors I couldn't fix, but nothing too serious.  Recently, though, I've come across an issue with the filesystem import.  I made sure the folder is viewable through browsers, and it is with a numeric value of 755.  But, when I tried to import the files into the downloads, it only uploaded two of the files, and there's at least 20 files in the folder.



I did notice that the two files that did get uploaded were very small files under 8 Kb.  So I tested it out by making a 1 Kilobyte file, and sure enough it was uploaded. 




I checked the max file size for uploads but they are set at 64 Mb.




Although this issue doesn't effect site stability, I still need it to work as a way to mass-upload downloads for the site visitors.  This method was also the way how I uploaded files to downloads while using OCportal version 6, and I made no custom changes to the filesystem upload.

Also, I've already searched the forums for similar problems.  I found and tried hotfixes 717 and 718, but neither of them helped.
Back to the top
 
Posted
Rating:
#91162
Avatar

Hi,

Please upgrade to the latest v8 release and ping this topic again if it is still occurring. I suspect it is fixed, but I can't go back through all the bug fixes to confirm.


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:
#91372
Avatar

Fan in training

Okay.  I did indeed upgrade to ver. 8.1.4, but there was no change to the situation.  No multi-upload.

But I did know that this worked on ver. 6, the version I was working with before upgrading to 8, and from the HotFixes I know that files2.php was involved.  So... I took files2.php from ver. 6 and uploaded it into my sources_custom folder in ver. 8.1.4.  I tried again and Voila... 40+ uploads in seconds.  O_o 

I may not know what's going on, but I'm guessing it's in files2.php.  I'll probably keep using ver. 6 of files2.php for a while.
Back to the top
 
Posted
Rating:
#91374
Avatar

That's interesting. Can you give me an exact file path to a file that did upload with that change that didn't before?


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:
#91375
Avatar

Fan in training

Back to the top
 
Posted
Rating:
#91376
Avatar

Thanks


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:
#91396
Avatar

Hi,

I couldn't reproduce this on my machine. There is something in the downloader, when it runs on your server, that it isn't downloading the same. The downloader runs on each file it is trying to import to ensure it is accessible by URL and that it is not a script.

If you open a free bug report ticket with server access I'd be happy to debug through it. You could fudge it to work by changing this line in cms/pages/modules/cms_downloads.php from:

Code

if (($HTTP_MESSAGE=='200') && (!is_null($shouldbe)) && (strcmp($shouldbe,$actuallyis)==0))
to:

Code

if (($HTTP_MESSAGE=='200') && (!is_null($shouldbe)) && ((strpos($full_path,'/uploads/website_specific/')!==false) && (strpos($full_path,'../')===false) || (strcmp($shouldbe,$actuallyis)==0)))


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
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: