Php errors

Hi there,
so here i go again. in this thread (https://theme.co/apex/forum/t/parallax-effect-not-working/48133/25) i wrote about the php errors i get. I dont know what happend but after i updated the theme and cornerstone and adjusted the functions.php i cant get rid of those php errors.
Please let me know what to do/try next.

EDIT:
I dont think i know what you mean by setting up a staging site. If you could elaborate that would be helpful for me.

Hi,

Thank you for creating a new thread, is logging in to the admin dashboard is part of the issue? I still can’t login to your admin dashboard it always says “FEHLER: Falscher Nutzername oder Passwort.

Would you mind switching to parent X theme?

I’m still on site files via FTP.

Update: No, dice I was not able to trace the issue, the error reporting is pointing to your child theme’s functions.php file, but I even try to remove all your custom functions in there but the error is still happening. Besides functions.php, is there any php files that you edited? All resources are pointing to Blank lines either at the top or bottom of the file or too many spaces in between <?php and ending ?>

Please recall what other files that you edit and what plugin did you install recently.

I was able to hide the warning by adding define('WP_DEBUG_DISPLAY', false ); on the wp-config.php file (but that does not mean the error is resolve.) it is still showing on the debug.log.

If you can not do a plugin test and switch to parent theme on the live site, please duplicate your site to a staging server so we can test it.

Thanks,

Hi there,

so switching to the main theme through the database worked. Site is up and running. The child theme must have been the problem.
Now: should i just delete the old child theme and install a new one and copy the old functions php infos into the new one? I dont even remember all the changes i made…
I had done some work on the child theme and would hate to lose all the edited stuff.

I also have a working backup from yesterday morning. (the reason why i didnt restore from that right away was because we are running a shop and there were several new orders in there since the backup from 4 am and i didnt know how to recover those. Now i do. The shop/order infos are absolutley essential. If those were lost i would have a huge problem)

EDIT:
By the way i did not edit any other php files or files in general. All i changed was in regard to the advice from the last thread.

Hi,

I checked your child theme and there seems to be a dot before <?php
Try to remove it then activate your child theme again.

Thanks

That is so weird!
I downloaded the functions.php several times and opened it with all kinds of different software… But there was no dot anywhere. Only in the Themeeditor in wordpress. I deleted it there and it seems to work now. I will test over the weekend and let you know how it went.

THANK YOU!!!

Do i still need to update cornerstone? Or is it updated automatically?

Hi @AtahualpaSeyffert,

Maybe you’re editing the wrong file or from the wrong folder.

As for cornerstone, if you updated the theme then you must update the cornerstone as well. But I personally recommend updating it occasionally, getting behind from the updates are more troublesome once there is a big gap between your current version and the latest version.

Thanks!

I definetly downloaded the correct file and always uploaded the saved file from the right folder… filezilla is almost idiot proof for me not to make any mistakes. It is weird but it is finally resolved.

Thanks for your help.

About the updates: I thought having autoupdating turned on would always give me the most stable version. And when i updated the theme and cornerstone manually i used just one set of files; the files from the stable version. So how can i have a version of cornerstone installed when the cornerstone files are from the stable version download.

I am just asking this since one of you guys suggested i had to do this because of a “wrong” version of cornerstone. Thats the only thing i am still a little confused about.

Hi @AtahualpaSeyffert,

Auto update will only allow Wordpress to install updates automatically but with your consent, by hitting the update button. It will not just auto-install any update. And update should be tested first in a staging, it is stable but since Wordpress is a modular platform, then conflict is unavoidable hence testing first is a must.

And since you use the stable version and you prefer it that way, then you don’t have to update to the latest.

So how can i have a version of cornerstone installed when the cornerstone files are from the stable version download.

When you install the stable version of X theme, just go to the validation page and it will install the compatible version for it. The correct cornerstone version is always the one that comes with the theme you installed.

Thanks!

Got it!
I really appreciate your help! Thanks for the advice and the infos.

One last question:

i was a little confused for some time about the same/different x plugins. Can i delete the “old” plugins (see screenshot) and active the new ones and have the settings “transfered”?

Hello @AtahualpaSeyffert,

Thanks for updating the thread.

You can delete the plugins at are inactive or that are deactivated. Other then that the plugins that you think are not required that can be deactivated and deleted too.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.